diff options
-rw-r--r-- | pym/_emerge/__init__.py | 3 | ||||
-rw-r--r-- | pym/portage/sets/__init__.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 97b273177..b0ad6391b 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -6908,7 +6908,7 @@ def emerge_main(): if myaction in ("clean", "config", "depclean", "info", "prune", "unmerge", None): root_config = trees[settings["ROOT"]]["root_config"] setconfig = root_config.setconfig - sets = root_config.sets + sets = setconfig.getSets() # emerge relies on the existance of sets with names "world" and "system" required_sets = ("world", "system") if "system" not in sets: @@ -6918,6 +6918,7 @@ def emerge_main(): if "world" not in sets: from portage.sets.files import WorldSet sets["world"] = WorldSet(root_config.root) + setconfig.psets.update(sets) for s in required_sets: if s not in sets: msg = ["emerge: incomplete set configuration, " + \ diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index 2d36f4814..5f82b69b7 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -74,7 +74,7 @@ class SetConfig(SafeConfigParser): def getSets(self): self._parse() - return self.psets + return self.psets.copy() def getSetAtoms(self, setname, ignorelist=None): myset = self.getSets()[setname] |