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

Bug 605978

Summary: app-portage/eix-0.31.7-r1: eix doesn't understand the package names with slot
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Martin Väth <martin>
Status: RESOLVED FIXED    
Severity: enhancement CC: axs, proxy-maint, xmw
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2017-01-17 09:40:13 UTC
Maybe scripts are outputting package names with slots in the form of, for example:
app-portage/portpeek:0

But eix doesn't understand them

Would it be possible to simply ignore that :SLOT part and behave like without anything? :/

Thanks a lot!
Comment 1 Martin Väth 2017-01-17 14:55:11 UTC
eix understands them if you pass them over stdin with "eix --pipe".
This is how scripts are meant to pass their output to eix.

It seems that you want some parsing even for the command line parameters.

Such an heuristics would surprise the user, because command line parameters are also used to match e.g. text inside of description texts or to use other search algorithms (e.g. pattern matching: Somebody might specify [:-z]).

I added now some "valid string cutting out" heuristics when the search target is of the form "category" "name" or "category/name", and when one of the algorithms "exact", "substring", "begin", or "end" is used.

For the heuristic to be useful, also the heuristics for specifying the default algorithm has to be changed (unless you explicitly specify -e). I did now also the latter, though I am not sure about perhaps surprising side effects: After all, also this change might come as a surprise to the users.

This is now in current eix, though I am not sure whether I will revert some parts of the change (especially the change in the default algorithm heuristics).