Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585248 - app-portage/portage-utils: --quiet suppresses all error messages to stderr
Summary: app-portage/portage-utils: --quiet suppresses all error messages to stderr
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-07 06:33 UTC by Ulrich Müller
Modified: 2016-11-26 23:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2016-06-07 06:33:10 UTC
"qfile -q -f foo.txt" doesn't output any error message to stderr, in spite of the error being fatal (because of the invalid -f option).

The -q/--quiet option should only suppress warnings, not fatal errors. (This is also what --help and the man page say.)
Comment 1 SpanKY gentoo-dev 2016-06-07 15:08:28 UTC
the errors aren't ignored, they're made silent.  the non-zero exit code is pretty clear that it failed, so scripts won't start accidentally working.
Comment 2 SpanKY gentoo-dev 2016-11-26 23:17:41 UTC
i tweaked how we write to stderr so only warning messages should get suppressed now.  fatal ones should still be written out.

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=b1558916d2ca76d7cd4c81248d5b220aaa46a728