From: Marius Mauch Date: Wed, 10 Jan 2007 09:50:19 +0000 (-0000) Subject: also sanitize mycpv for =* handling X-Git-Tag: v2.1.2~114 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d28882f9a173cca97adb448a6e514d1197cb27c;p=portage.git also sanitize mycpv for =* handling svn path=/main/trunk/; revision=5517 --- 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))]