summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-10 09:50:19 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-10 09:50:19 +0000
commit2d28882f9a173cca97adb448a6e514d1197cb27c (patch)
tree9c9de5a72d21d7f4cf6c74fdfe9bb0aa4719e6f8 /pym/portage_dep.py
parent4ef95138481071114b2155b92ae8886786aac29a (diff)
downloadportage-2d28882f9a173cca97adb448a6e514d1197cb27c.tar.gz
portage-2d28882f9a173cca97adb448a6e514d1197cb27c.tar.bz2
portage-2d28882f9a173cca97adb448a6e514d1197cb27c.zip
also sanitize mycpv for =* handling
svn path=/main/trunk/; revision=5517
Diffstat (limited to 'pym/portage_dep.py')
-rw-r--r--pym/portage_dep.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index 0baeab08f..edf62522b 100644
--- 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))]