From: Marius Mauch Date: Wed, 10 Jan 2007 11:02:21 +0000 (-0000) Subject: I hate this thing X-Git-Tag: v2.1.2~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0;p=portage.git I hate this thing svn path=/main/trunk/; revision=5519 --- diff --git a/pym/portage_dep.py b/pym/portage_dep.py index 95ae4b640..c488aa948 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -587,7 +587,10 @@ def match_from_list(mydep, candidate_list): # Required as =* is a literal prefix match, so can't # use vercmp mysplit = catpkgsplit(mycpv) - mycpv = mysplit[0]+"/"+mysplit[1]+"-"+mysplit[2].lstrip("0") + myver = mysplit[2].lstrip("0") + if not myver[0].isdigit() + mver = "0"+myver + mycpv = mysplit[0]+"/"+mysplit[1]+"-"+myver for x in candidate_list: xs = catpkgsplit(x) xcpv = xs[0]+"/"+xs[1]+"-"+xs[2].lstrip("0")