Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876508 - app-portage/eix --only-in-overlay in combination with --only-names shows zero matches
Summary: app-portage/eix --only-in-overlay in combination with --only-names shows zero...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-10 14:00 UTC by tt_1
Modified: 2022-10-10 19:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output from emerge --info (emerge-info,8.13 KB, text/plain)
2022-10-10 14:56 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2022-10-10 14:00:58 UTC
$ LANG=C eix -I --only-in-overlay --only-names
No matches found

while its working if you flip the two: 

$ LANG=C eix -I --only-names --only-in-overlay 
cross-aarch64-unknown-linux-gnu/binutils
cross-aarch64-unknown-linux-gnu/gcc
cross-aarch64-unknown-linux-gnu/glibc
cross-aarch64-unknown-linux-gnu/linux-headers
cross-armv7a-unknown-linux-gnueabihf/binutils
cross-armv7a-unknown-linux-gnueabihf/gcc
cross-armv7a-unknown-linux-gnueabihf/glibc
cross-armv7a-unknown-linux-gnueabihf/linux-headers

my guess here is, that this is supposed to work in both ways?
Comment 1 tt_1 2022-10-10 14:56:42 UTC
Created attachment 823468 [details]
output from emerge --info

emerge --info for completeness
Comment 2 Martin Väth 2022-10-10 18:44:12 UTC
Works as intended: --only-in-overlay needs a pattern for the overlay as an additional argument. In particular, the empty pattern '' matches all matches which are not in the official portage tree: This example is explicitly described in the eix manpage.
When you place --only-in-overlay as the last parameter, the argument becomes optional (empty if not provided).

$ eix -I --only-in-overlay '' --only-names |wc           
     95      95    2171
Comment 3 tt_1 2022-10-10 19:00:07 UTC
alrighty, works as intended - I was unable to make sense of the man page it seems :(