diff options
author | Marius Mauch <genone@gentoo.org> | 2007-01-10 09:50:19 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-01-10 09:50:19 +0000 |
commit | 2d28882f9a173cca97adb448a6e514d1197cb27c (patch) | |
tree | 9c9de5a72d21d7f4cf6c74fdfe9bb0aa4719e6f8 | |
parent | 4ef95138481071114b2155b92ae8886786aac29a (diff) | |
download | portage-2d28882f9a173cca97adb448a6e514d1197cb27c.tar.gz portage-2d28882f9a173cca97adb448a6e514d1197cb27c.tar.bz2 portage-2d28882f9a173cca97adb448a6e514d1197cb27c.zip |
also sanitize mycpv for =* handling
svn path=/main/trunk/; revision=5517
-rw-r--r-- | pym/portage_dep.py | 2 |
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))] |