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

Bug 152325

Summary: equery uses default behavior minor changes
Product: Portage Development Reporter: Jorge Vargas <jorge.vargas>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 170220    

Description Jorge Vargas 2006-10-22 01:15:36 UTC
Hi 

I have been using equery a lot lately and I love the output of uses, the thing I don't like is that I have to remenber to use the -a flag went it's a package that's not in my system (which ends up asking myself if I have the package in the first place)

My other issue with -a is that it shows all the ebuilds in the tree and it's the only way to get it for packages which are not installed. which ends up being reduntant because if your running equery u -a <package not in system> you will get the same thing N times which just the changed version. and unless there is a weird case you will only want the lastest version.

So I suggest doing the following change.

add a field before " Found these USE variables for" that will say if the package is installed or not. (install red, uninstall blue?)

so -a flag will show them.

and let the default (no flags) show the lastest package (installed or not) 

bonus points add 2 more flags 

-i --installed (usefull for sloted packages)
-u --uninstalled (pretty useless because it will be what -a does not for a package that is not install)

this is not a dub of 
http://bugs.gentoo.org/show_bug.cgi?id=142953
that was something that doesn't reads.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2007-04-11 02:13:59 UTC
r386 | fuzzyray | 2007-04-10 21:12:08 -0500 (Tue, 10 Apr 2007) | 4 lines

Change equery uses command to display the best matching
uninstalled package version if an uninstalled package is specified.
Changed the meaning of -a to mean display all versions. (Bug #152325)
Comment 2 Paul Varner (RETIRED) gentoo-dev 2007-04-11 05:03:53 UTC
Released in gentoolkit-0.2.4_pre4