summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index 10c91cf6f..9e55cc883 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -1497,7 +1497,11 @@ class config(object):
has_changed = True
oldpuse = self.puse
self.puse = ""
- cpdict = self.pusedict.get(cp)
+ cpdict = {}
+ cpdict.update(self.pusedict.get("*/*", {}))
+ cpdict.update(self.pusedict.get(cat+"/*", {}))
+ cpdict.update(self.pusedict.get("*/"+cp.split("/")[1], {}))
+ cpdict.update(self.pusedict.get(cp, {}))
if cpdict:
keys = list(cpdict)
while keys: