Summary: | app-portage/gentoolkit - equery search misses 3/4 of installed packages | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Rémi Cardona (RETIRED) <remi> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | esigra |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 170220 | ||
Attachments: | equery_default_package_finder.diff |
Description
Rémi Cardona (RETIRED)
2005-09-17 07:38:01 UTC
equery list searches for exactly gtk, rather than anything containing gtk. The fact that gtk-engines shows up is a bug caused by the fact that equery in this case treats it as package gtk with version engines-2.6.5. To find all packages containing gtk, the less friendly equery list '.*gtk.*' can be used. (Also, in equery, the search is case sensitive, so this won't find wxGTK, which contains GTK rather than gtk.) Yes, it's true that this is not very intuitive. > On a side note the "-I" flag described in the man page doesn't work : > atmos linux # equery list -I gtk+ > !!! You must specify one of -i, -p or -o From the manpage: "if -I is used, -p and/or -o must be also" Also, bug #77113 may be of interest. oh ok, I reread the man page again and it didn't specify that searching meant using grep type regexp, and I figured it would work like qpkg. Maybe the man page on this aspect could be made clearer. For the -I switch maybe the error message could say "You must _also_ specify one of -i, -p or -o" or maybe imply the "-p" switch automagically if no other switch is specified. Thanks for taking the time to answer, if you feel like my ideas aren't worth much, feel free to close this bug as it's turned more into a feature request. R oh ok, I reread the man page again and it didn't specify that searching meant using grep type regexp, and I figured it would work like qpkg. Maybe the man page on this aspect could be made clearer. For the -I switch maybe the error message could say "You must _also_ specify one of -i, -p or -o" or maybe imply the "-p" switch automagically if no other switch is specified. Thanks for taking the time to answer, if you feel like my ideas aren't worth much, feel free to close this bug as it's turned more into a feature request. Rémi I'm still thinking about this one. If I do anything it will be to automatically add -p if -I is used by itself. Created attachment 143910 [details, diff]
equery_default_package_finder.diff
This patch causes equery to always use a default package finder. In other words:
(test) black equery # equery list -I portage # OLD
!!! You must specify one of -i, -p or -o
(test) black equery # ./equery list -I portage # NEW
!!! With -I you must specify one of -i, -p or -o. Assuming -p
[ Searching for package 'portage' in all categories among: ]
* Portage tree (/usr/portage)
[-P-] [ ] app-portage/portage-manpages-20060913 (0)
[-P-] [M~] app-portage/portage-mod_jabber-0.0.2 (0)
[-P-] [M~] app-portage/portage-mod_jabber-0.0.3 (0)
[-P-] [M~] app-portage/portage-utils-0.1.29 (0)
[-P-] [M~] dev-python/yolk-portage-0.1 (0)
[-P-] [ ] sys-apps/portage-2.0.51.22-r3 (0)
[-P-] [ ] sys-apps/portage-2.1.1-r2 (0)
[-P-] [ ] sys-apps/portage-2.1.2.12 (0)
[-P-] [ ] sys-apps/portage-2.1.3.19 (0)
[-P-] [M~] sys-apps/portage-2.2_pre2 (0)
$ svn commit -m "Assume the -p flag when equery list -I is used by itself. (Bug 106278)" Sending equery/equery Transmitting file data . Committed revision 469. Released in gentoolkit-0.2.4_rc2 |