From: Zac Medico Date: Wed, 6 Dec 2006 18:47:01 +0000 (-0000) Subject: Sync match_to_list >=, <=, etc.. code with the new = code. X-Git-Tag: v2.1.2~396 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=700715bd7012e5ad2ca20dc0b2353a8c8e6d3900;p=portage.git Sync match_to_list >=, <=, etc.. code with the new = code. svn path=/main/trunk/; revision=5176 --- diff --git a/pym/portage_dep.py b/pym/portage_dep.py index 4669682f2..32562e4ca 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -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: