diff options
author | Marius Mauch <genone@gentoo.org> | 2007-01-10 11:02:21 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-01-10 11:02:21 +0000 |
commit | e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0 (patch) | |
tree | 9e2356e9a4e3242b38f16ab53a54edd00a2346d6 | |
parent | ea4a9b44702d35c7f1e625e93dea5788ab73fbb6 (diff) | |
download | portage-e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0.tar.gz portage-e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0.tar.bz2 portage-e12b63e53cd6179d25f27eceb82cfe7a6ba6b7e0.zip |
I hate this thing
svn path=/main/trunk/; revision=5519
-rw-r--r-- | pym/portage_dep.py | 5 |
1 files changed, 4 insertions, 1 deletions
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") |