summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/sets/base.py b/pym/portage/sets/base.py
index 370b03d45..87a0d1db7 100644
--- a/pym/portage/sets/base.py
+++ b/pym/portage/sets/base.py
@@ -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)