summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-06 18:37:16 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-06 18:37:16 +0000
commit0669607c84796fcc01afc230f9f84a6b8d68a95e (patch)
treedd61eba896f03b234d8fd90084521b454025e8ce
parent669eff5e9d39d4987bf73c4f84055a163e7b08e4 (diff)
downloadportage-0669607c84796fcc01afc230f9f84a6b8d68a95e.tar.gz
portage-0669607c84796fcc01afc230f9f84a6b8d68a95e.tar.bz2
portage-0669607c84796fcc01afc230f9f84a6b8d68a95e.zip
Make match_to_list = behavior consistent with >= and <= for bug #152127.
svn path=/main/trunk/; revision=5175
-rw-r--r--pym/portage_dep.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index e5446ef15..4669682f2 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -533,8 +533,17 @@ def match_from_list(mydep, candidate_list):
mylist.append(x)
elif operator == "=": # Exact match
- if mycpv in candidate_list:
- mylist = [mycpv]
+ mysplit = ["%s/%s" % (cat, pkg), ver, rev]
+ for x in candidate_list:
+ try:
+ result = pkgcmp(pkgsplit(x), mysplit)
+ except SystemExit:
+ raise
+ except:
+ writemsg("\nInvalid package name: %s\n" % x, noiselevel=-1)
+ raise
+ if result == 0:
+ mylist.append(x)
elif operator == "=*": # glob match
# The old verion ignored _tag suffixes... This one doesn't.