Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605978 - app-portage/eix-0.31.7-r1: eix doesn't understand the package names with slot
Summary: app-portage/eix-0.31.7-r1: eix doesn't understand the package names with slot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 09:40 UTC by Pacho Ramos
Modified: 2017-02-10 00:35 UTC (History)
3 users (show)

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 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).