I hate this thing
authorMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 11:02:21 +0000 (11:02 -0000)
committerMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 11:02:21 +0000 (11:02 -0000)
svn path=/main/trunk/; revision=5519

pym/portage_dep.py

index 95ae4b640ab02712add4112dd8695f689ae7aacc..c488aa94829ed58b68c8f032415ae1b4fc26e24c 100644 (file)
@@ -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")