Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255485 - equery can handle more than one argument
Summary: equery can handle more than one argument
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2009-01-19 10:04 UTC by Laszlo Papp
Modified: 2010-01-07 19:39 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 Laszlo Papp 2009-01-19 10:04:03 UTC
Hello!

Why equery can't handle more than 1 argument from the command line? if it could, it would be very reasonable i think! Just like emerge and any other important command from the terminal!

Example:

I must emerge 20 programs at the same time. I will use "emerge program1 program2 ... program20" command from the shell, but before it i want to see the use flags of the 20 programs!
Ok i will use this "equery u program1 && equery program2 && ... && equery program20" instead of "equery u program1 program2 && ... && program20"!

"equery u program1 program2 && ... && program20" is equivalent now with "equery u program20" instead of "equery u" every 20 program!

I saw the /usr/bin/equery python code to modify, but i don't have enough time now :(

Please help us Dear Gentoo Developers! :o)

Thanks!

Reproducible: Always
Comment 1 Joshua S 2009-01-19 22:45:03 UTC
 progs=(program1 program1 program3 ...); for prog in ${progs[@]};  do equery u $prog; done;
Comment 2 Douglas Anderson 2009-01-19 23:43:11 UTC
> I saw the /usr/bin/equery python code to modify, but i don't have enough time
> now :(

Good, because it is (was) non-trivial in some places, and it's already done. :) This should be in the next major release of gentoolkit. This is 'list', but all equery commands now take multiple input. Be patient :)

dja@vault trunk $ ./equery.py list -i baselayout gcc
[ Searching for baselayout in all categories ... ]
 * installed packages
[I--] [  ] sys-apps/baselayout-1.12.11.1 (0)

[ Searching for gcc in all categories ... ]
 * installed packages
[I--] [  ] sys-devel/gcc-4.1.2 (4.1)
[I--] [  ] sys-devel/gcc-config-1.4.0-r4 (0)
Comment 3 michael@smith-li.com 2009-01-24 01:21:06 UTC
(In reply to comment #2)
> Good, because it is (was) non-trivial in some places, and it's already done. :)
> This should be in the next major release of gentoolkit. This is 'list', but all
> equery commands now take multiple input. Be patient :)

Is this code in svn? Please add the InSVN keyword and add this bug to the tracker for the next release (bug 237964)

If the code is not in svn, please include a patch in this bug.

Thanks!
Comment 4 Douglas Anderson 2009-05-21 20:00:36 UTC
gentoolkit greater than 0.3.0_rc* supports multiple queries.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2010-01-07 19:39:00 UTC
Fixed in the gentoolkit-0.3.0 series