Skip PROVIDE conditional evaluation in PackageSet.iterAtomsForPackage(), since
authorZac Medico <zmedico@gentoo.org>
Fri, 3 Jul 2009 09:05:39 +0000 (09:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 3 Jul 2009 09:05:39 +0000 (09:05 -0000)
Package.metadata handles that automatically now.

svn path=/main/trunk/; revision=13764

pym/portage/sets/base.py

index 370b03d45009148c70f3da1db5ba223d3961b90a..87a0d1db76affed2c2695dacb0b49159276cb168 100644 (file)
@@ -142,10 +142,10 @@ class PackageSet(object):
                        for atom in atoms:
                                if match_from_list(atom, cpv_slot_list):
                                        yield atom
-               if not pkg.metadata["PROVIDE"]:
+               provides = pkg.metadata['PROVIDE']
+               if not provides:
                        return
-               provides = flatten(use_reduce(paren_reduce(pkg.metadata["PROVIDE"]),
-                       uselist=pkg.metadata["USE"].split()))
+               provides = provides.split()
                for provide in provides:
                        provided_cp = dep_getkey(provide)
                        atoms = self._atommap.get(provided_cp)