Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57580 - equery error reporting
Summary: equery error reporting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-19 07:06 UTC by Tobias Klausmann (RETIRED)
Modified: 2004-09-08 11:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Equery stderr patch (equery_stderr.patch,3.03 KB, patch)
2004-07-19 07:19 UTC, Tobias Klausmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2004-07-19 07:06:52 UTC
Currently, equery dumps error messages (such as when asking for a non-existant ebuild) to stdout. This makes snippets like these fail horribly:

for i in *; do grep DESCRIPTION $(equery which app-portage/$i 2>/dev/null); done

In Unix tradition, error messages should go to stderr, not stdout. It shouldn't be too hard to fix equery accordingly. For apps which require errors on stdout, either 2>&1 can be used or maybe a cmd line switch could be added. The default should be stderr for error messages, though.

If need be, I can try to write a patch.
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2004-07-19 07:19:10 UTC
Created attachment 35740 [details, diff]
Equery stderr patch

Simple patch to wrap error message output into extra function.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-08-28 03:11:10 UTC
Will look at it.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-08-29 13:10:18 UTC
Yeah, I'm currently reworking all of equery's output, thanks.
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-08 10:13:21 UTC
I think this is fixed properly now. Will be part of the next Gentoolkit release. Thanks!
Comment 5 Tobias Klausmann (RETIRED) gentoo-dev 2004-09-08 11:44:35 UTC
In case there's been any doubt: my contributions are of course GPLv2, i.e. license-identical to that of equery.