Sync match_to_list >=, <=, etc.. code with the new = code.
authorZac Medico <zmedico@gentoo.org>
Wed, 6 Dec 2006 18:47:01 +0000 (18:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Dec 2006 18:47:01 +0000 (18:47 -0000)
svn path=/main/trunk/; revision=5176

pym/portage_dep.py

index 4669682f25cf99a688fa66b8fbc6249a2c95af0e..32562e4ca9a32531807ce29736b655dc36b8b5af 100644 (file)
@@ -561,9 +561,10 @@ def match_from_list(mydep, candidate_list):
                        mylist.append(x)
 
        elif operator in [">", ">=", "<", "<="]:
+               mysplit = ["%s/%s" % (cat, pkg), ver, rev]
                for x in candidate_list:
                        try:
-                               result = pkgcmp(pkgsplit(x), [cat + "/" + pkg, ver, rev])
+                               result = pkgcmp(pkgsplit(x), mysplit)
                        except SystemExit:
                                raise
                        except: