Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108983 - app-portage/gentoolkit - `equery --quiet list` needs to be quieter
Summary: app-portage/gentoolkit - `equery --quiet list` needs to be quieter
Status: RESOLVED DUPLICATE of bug 78921
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 02:40 UTC by Stuart W. Finlayson
Modified: 2005-10-12 08:24 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 Stuart W. Finlayson 2005-10-12 02:40:38 UTC
I'd like to use the output from equery as parameters for other programs.  For     
instance, in the past when a new KDE came about, to get rid of the old slot I     
would do something like this:     
     
emerge --prune $(qpkg -I -nc -g kde-base)     
     
However, this is not possible with equery as of yet.  Although the output is     
paired down somewhat when it is piped or used in command substitution, it 
still prints a "description" line (a line like " * description of 
output"--e.g. " *   installed packages" or " * Portage tree (/usr/portage)".  
However this makes the output undesirable--especially since the "*" is 
translated to every file and directory in $PWD.  The following example should 
illustrate what I mean: 
 
emerge --prune --pretend $(equery --nocolor list --installed kde-base/) 
  
I had hoped that the --quiet option might be of use, but it currently does 
nothing with regard to the equery list command.  You get the same output 
whether or not the option is present.  It would be nice if --quiet just listed 
the packages and not all the other info, is that possible?
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2005-10-12 03:57:10 UTC
No such problem here. Which version are you using?

% equery list www-client/ | cat           
 * installed packages
www-client/lynx-2.8.5
www-client/elinks-0.10.5-r1
www-client/w3m-0.5.1-r3
www-client/opera-8.50
www-client/mozilla-launcher-1.45
www-client/links-2.1_pre18
www-client/mozilla-firefox-1.5_beta1
% equery --quiet list www-client/ | cat
www-client/lynx-2.8.5
www-client/elinks-0.10.5-r1
www-client/w3m-0.5.1-r3
www-client/opera-8.50
www-client/mozilla-launcher-1.45
www-client/links-2.1_pre18
www-client/mozilla-firefox-1.5_beta1
% emerge -pv gentoolkit

These are the packages that I would merge, in order:

Calculating dependencies ...done!

[ebuild  R   ] app-portage/gentoolkit-0.2.1_pre8

Total size of downloads: 0 kB

(As a side note, because the output includes a version number but no operator,
it's not directly usable; you'll need to pass the output through sed or
something similar and have it either strip off the version number, or add an
operator.)
Comment 2 Stuart W. Finlayson 2005-10-12 04:29:20 UTC
I'm using the one marked as stable, app-portage/gentoolkit-0.2.0-r1.  So, I  
guess this version's --quiet is broken.  
  
As for the side note you mentioned, that's simple enough to do.  However, it'd 
be handy to have additional flags that do that for you, something like 
--no-version and --with-operator.  
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-10-12 08:24:24 UTC

*** This bug has been marked as a duplicate of 78921 ***