projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4a9b4
)
I hate this thing
author
Marius Mauch
<genone@gentoo.org>
Wed, 10 Jan 2007 11:02:21 +0000
(11:02 -0000)
committer
Marius Mauch
<genone@gentoo.org>
Wed, 10 Jan 2007 11:02:21 +0000
(11:02 -0000)
svn path=/main/trunk/; revision=5519
pym/portage_dep.py
patch
|
blob
|
history
diff --git
a/pym/portage_dep.py
b/pym/portage_dep.py
index 95ae4b640ab02712add4112dd8695f689ae7aacc..c488aa94829ed58b68c8f032415ae1b4fc26e24c 100644
(file)
--- a/
pym/portage_dep.py
+++ b/
pym/portage_dep.py
@@
-587,7
+587,10
@@
def match_from_list(mydep, candidate_list):
# Required as =* is a literal prefix match, so can't
# use vercmp
mysplit = catpkgsplit(mycpv)
- mycpv = mysplit[0]+"/"+mysplit[1]+"-"+mysplit[2].lstrip("0")
+ myver = mysplit[2].lstrip("0")
+ if not myver[0].isdigit()
+ mver = "0"+myver
+ mycpv = mysplit[0]+"/"+mysplit[1]+"-"+myver
for x in candidate_list:
xs = catpkgsplit(x)
xcpv = xs[0]+"/"+xs[1]+"-"+xs[2].lstrip("0")