From 700715bd7012e5ad2ca20dc0b2353a8c8e6d3900 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 6 Dec 2006 18:47:01 +0000 Subject: [PATCH] Sync match_to_list >=, <=, etc.. code with the new = code. svn path=/main/trunk/; revision=5176 --- pym/portage_dep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.26.2