summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-06 18:47:01 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-06 18:47:01 +0000
commit700715bd7012e5ad2ca20dc0b2353a8c8e6d3900 (patch)
tree932f2a873aa70e3cb797a14358aaec0aad7ec7d7
parent0669607c84796fcc01afc230f9f84a6b8d68a95e (diff)
downloadportage-700715bd7012e5ad2ca20dc0b2353a8c8e6d3900.tar.gz
portage-700715bd7012e5ad2ca20dc0b2353a8c8e6d3900.tar.bz2
portage-700715bd7012e5ad2ca20dc0b2353a8c8e6d3900.zip
Sync match_to_list >=, <=, etc.. code with the new = code.
svn path=/main/trunk/; revision=5176
-rw-r--r--pym/portage_dep.py3
1 files changed, 2 insertions, 1 deletions
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: