From bd52bd0e2f7dd70508c7d7eea47587c715f4d3c3 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Fri, 23 Jul 2010 12:13:53 +0200 Subject: [PATCH] Make atoms with wildcards in package.use work --- pym/portage/package/ebuild/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- 2.26.2