--- portage_versions.py.orig 2007-03-17 14:20:36.000000000 +0100 +++ portage_versions.py.orig 2007-03-17 18:48:17.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","-1") else: s1 = suffix_regexp.match(list1[i]).groups() if len(list2) <= i: - s2 = ("p","0") + s2 = ("p","-1") else: s2 = suffix_regexp.match(list2[i]).groups() if s1[0] != s2[0]: @@ -140,7 +140,8 @@ except ValueError: r1 = 0 try: r2 = int(s2[1]) except ValueError: r2 = 0 - return r1 - r2 + if (r1 - r2): + return r1 - r2 # the suffix part is equal to, so finally check the revision if match1.group(10):