Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225773 - eix does not parse correctly slots with dashes (Invalid line, You have a operator but we can't find a version-part)
Summary: eix does not parse correctly slots with dashes (Invalid line, You have a ope...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 16:41 UTC by Edward "Hades"
Modified: 2008-06-25 19:37 UTC (History)
1 user (show)

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


Attachments
Patch to fix eix problem with slot names with dashes (eix-dashedslots.patch,385 bytes, patch)
2008-06-10 16:43 UTC, Edward "Hades"
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edward "Hades" 2008-06-10 16:41:32 UTC
app-portage/eix does not parse correctly slot names with dashes (for example kde-4). This results in such messages as:

-- Invalid line in /etc/portage/package.unmask(16): "<kde-base/kde-meta-4.0.4:kde-4"
    You have a operator but we can't find a version-part.

The reason is that the function, responsible for finding the version number, finds it by roughly the following regexp: /-\d.*$/, that is obviously wrong in case of slot names, that contain dashes.

This affects all eix versions up to and including svn trunk.
Patch follows.
Comment 1 Edward "Hades" 2008-06-10 16:43:41 UTC
Created attachment 156259 [details, diff]
Patch to fix eix problem with slot names with dashes
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-06-10 16:57:10 UTC
Sorry, but it's customary to wait until a fixed version is available to everyone. :)
Comment 3 Edward "Hades" 2008-06-10 16:59:07 UTC
(In reply to comment #2)
> Sorry, but it's customary to wait until a fixed version is available to
> everyone. :)
> 

I'm sorry, I didn't know where to ask about correct patch submission procedure.
Comment 4 Martin Väth 2008-06-10 19:39:07 UTC
Submitting a patch is ok; I guess Jeroen meant that the bug should only be
closed when a working version of the package is in the portage tree.

The patch is now included eix' svn trunk; it will be released with
>=eix-0.12.6.
Comment 5 Martin Väth 2008-06-25 19:37:45 UTC
Since eix-0.13.0 is now in the tree, I mark the bug as "fixed".
Re-open if it does not work as expected.