summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-07 20:09:10 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-07 20:09:10 +0000
commit156872a0afbc16fdee26c594f0527a89cdd1f8c8 (patch)
tree87212831a39247ec304066ec2dbce13b25593dd9
parent2cdc01b14f5db5a8e95614815bc0813a20c6b433 (diff)
downloadportage-156872a0afbc16fdee26c594f0527a89cdd1f8c8.tar.gz
portage-156872a0afbc16fdee26c594f0527a89cdd1f8c8.tar.bz2
portage-156872a0afbc16fdee26c594f0527a89cdd1f8c8.zip
Revert r5175 for bug #152127 since the original = behavior seems more desirable. We can change the >= and <= behavior instead.
svn path=/main/trunk/; revision=5204
-rw-r--r--pym/portage_dep.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index 32562e4ca..413e87cbb 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -533,17 +533,8 @@ def match_from_list(mydep, candidate_list):
mylist.append(x)
elif operator == "=": # Exact match
- 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)
+ if mycpv in candidate_list:
+ mylist = [mycpv]
elif operator == "=*": # glob match
# The old verion ignored _tag suffixes... This one doesn't.