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:
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, " + \
def getSets(self):
self._parse()
- return self.psets
+ return self.psets.copy()
def getSetAtoms(self, setname, ignorelist=None):
myset = self.getSets()[setname]