summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))]