projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ef9513
)
also sanitize mycpv for =* handling
author
Marius Mauch
<genone@gentoo.org>
Wed, 10 Jan 2007 09:50:19 +0000
(09:50 -0000)
committer
Marius Mauch
<genone@gentoo.org>
Wed, 10 Jan 2007 09:50:19 +0000
(09:50 -0000)
svn path=/main/trunk/; revision=5517
pym/portage_dep.py
patch
|
blob
|
history
diff --git
a/pym/portage_dep.py
b/pym/portage_dep.py
index 0baeab08f4c9d7ed22261ebbd87638c5536bcc71..edf62522bb00e5327c2d849e14af0c6663b10b20 100644
(file)
--- a/
pym/portage_dep.py
+++ b/
pym/portage_dep.py
@@
-587,6
+587,8
@@
def match_from_list(mydep, candidate_list):
# XXX: Nasty special casing for leading zeros
# Required as =* is a literal prefix match, so can't
# use vercmp
+ mysplit = catpkgsplit(mycpv)
+ mycpv = mysplit[0]+"/"+mysplit[1]+"-"+mysplit[2].lstrip("0")
xs = catpkgsplit(x)
xcpv = xs[0]+"/"+xs[1]+"-"+xs[2].lstrip("0")
xcpv = x[:min(len(x), len(mycpv))]