--- pym/portage_versions.py.orig 2007-03-17 14:20:36.000000000 +0100 +++ pym/portage_versions.py 2007-03-17 14:31:40.000000000 +0100 @@ -124,11 +124,11 @@ for i in range(0, max(len(list1), len(list2))): if len(list1) <= i: - s1 = ("p","0") + s1 = ("p","-2") else: s1 = suffix_regexp.match(list1[i]).groups() if len(list2) <= i: - s2 = ("p","0") + s2 = ("p","-2") else: s2 = suffix_regexp.match(list2[i]).groups() if s1[0] != s2[0]: @@ -137,9 +137,9 @@ # it's possible that the s(1|2)[1] == '' # in such a case, fudge it. try: r1 = int(s1[1]) - except ValueError: r1 = 0 + except ValueError: r1 = -1 try: r2 = int(s2[1]) - except ValueError: r2 = 0 + except ValueError: r2 = -1 return r1 - r2 # the suffix part is equal to, so finally check the revision