Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78921

Summary: gentoolkit-0.2.0: "equery belongs" output is inconsistent based on tty output and/or -q
Product: Portage Development Reporter: Phil Richards <news>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: stu
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to make --quiet more sane

Description Phil Richards 2005-01-21 02:00:14 UTC
Ok, here goes:
| # equery belongs /usr/src/linux-2.6.10-gentoo-r6
| [ Searching for file(s) /usr/src/linux-2.6.10-gentoo-r6 in *... ]
| sys-kernel/gentoo-dev-sources-2.6.10-r6 (/usr/src/linux-2.6.10-gentoo-r6)

Bit verbose, so lets try -q:
| # equery -q belongs /usr/src/linux-2.6.10-gentoo-r6
| [ Searching for file(s) /usr/src/linux-2.6.10-gentoo-r6 in *... ]
| sys-kernel/gentoo-dev-sources-2.6.10-r6 (/usr/src/linux-2.6.10-gentoo-r6)

No change.  Let's see what happens when we filter it with "cat":
| # equery -q belongs /usr/src/linux-2.6.10-gentoo-r6 | cat
| sys-kernel/gentoo-dev-sources-2.6.10-r6

That's more like it!

The bug is that "-q" appears to be ignored if the output is to a tty.


Phil
Comment 1 Paul Varner (RETIRED) gentoo-dev 2005-04-02 06:33:23 UTC
Created attachment 55099 [details, diff]
Patch to make --quiet more sane

This is a patch to make the --quiet option a little more sane
Comment 2 Paul Varner (RETIRED) gentoo-dev 2005-09-16 13:20:01 UTC
Fix is in subversion
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-09-23 15:49:08 UTC
Fix is in gentoolkit-0.2.1_pre8
Comment 4 Paul Varner (RETIRED) gentoo-dev 2005-10-12 08:24:24 UTC
*** Bug 108983 has been marked as a duplicate of this bug. ***
Comment 5 Paul Varner (RETIRED) gentoo-dev 2006-01-17 19:11:26 UTC
Fixed in gentoolkit-0.2.1