Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638740 - app-portage/portage-utils qlist issues with slot
Summary: app-portage/portage-utils qlist issues with slot
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-24 20:13 UTC by William L. Thomson Jr.
Modified: 2018-03-23 13:23 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 William L. Thomson Jr. 2017-11-24 20:13:29 UTC
I was wanting to list for uninstall/re-emerge of installed netbeans packages. I have 2 slots 8.2 and 9. I wanted to limit to just 9. I assumed it could via slot. There maybe means via another way. But the following did not work.

qlist -IC 'dev-java/netbeans-*' -S 9

Seems like it became OR vs AND. It lists a bunch of incorrect stuff. Things in various slots, or any. Various package names, that do not match up. Its not a work update list of packages. I cannot guestimate how it came up with the list it produces from that.

I think it should be the same for any. Pick a package that has a few related packages that would match the pattern portion. Run that, see that list. Then add the slot/-S, and see the list grow to much more stuff :)
Comment 1 Zac Medico gentoo-dev 2017-11-24 20:42:57 UTC
Here's a workaround:

qlist -ICS $(portageq match / 'dev-java/netbeans-*:9')
Comment 2 William L. Thomson Jr. 2017-12-03 17:28:24 UTC
Ah thanks!!! I was trying to mess with format but could not get it down. Thought I tried that format, but guess not. Much appreciated!
Comment 3 Fabian Groffen gentoo-dev 2018-03-23 13:23:05 UTC
slot match as part of the atom appears to work well:

% qlist -ICv dev-lang/python:2.7
dev-lang/python-2.7.14
% qlist -ICv dev-lang/python:3.5
dev-lang/python-3.5.4

I think you misinterpreted the -S flag, it doesn't take an argument (= slot like in your example) it just prints the slot of the package.  So it takes 9 in your example as argument to match against, which turns out to be anything with a 9 in its name, version or revision.

E.g. compare against the previous output:

% qlist -SICv dev-lang/python:3.5
dev-lang/python-3.5.4:3.5/3.5m