From 2d28882f9a173cca97adb448a6e514d1197cb27c Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Wed, 10 Jan 2007 09:50:19 +0000 Subject: also sanitize mycpv for =* handling svn path=/main/trunk/; revision=5517 --- pym/portage_dep.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') 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))] -- cgit v1.2.3-1-g7c22