From e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Wed, 10 Jan 2007 11:02:21 +0000 Subject: [PATCH] I hate this thing svn path=/main/trunk/; revision=5519 --- pym/portage_dep.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") -- 2.26.2