Make atoms with wildcards in package.use work
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 23 Jul 2010 10:13:53 +0000 (12:13 +0200)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Jul 2010 16:47:13 +0000 (09:47 -0700)
pym/portage/package/ebuild/config.py

index 10c91cf6f664cf7a348128d6ccf661c4507a65f1..9e55cc883657e4cef457ebdf01342b75e2b74ffa 100644 (file)
@@ -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: