Revert r5175 for bug #152127 since the original = behavior seems more desirable....
authorZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 20:09:10 +0000 (20:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 7 Dec 2006 20:09:10 +0000 (20:09 -0000)
svn path=/main/trunk/; revision=5204

pym/portage_dep.py

index 32562e4ca9a32531807ce29736b655dc36b8b5af..413e87cbbd64e1e2f734747a586ba2b023b46dcf 100644 (file)
@@ -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.