def _check_world(self, onProgress):
categories = set(portage.settings.categories)
myroot = portage.settings["ROOT"]
- self.world_file = os.path.join(myroot, portage.const.WORLD_FILE)
+ self.world_file = os.path.join(portage.settings["EROOT"], portage.const.WORLD_FILE)
self.found = os.access(self.world_file, os.R_OK)
vardb = portage.db[myroot]["vartree"].dbapi
# only populated with local packages here (getbinpkgs=0).
bindb.bintree.populate()
- world_file = os.path.join(root, WORLD_FILE)
+ world_file = os.path.join(mysettings['EROOT'], WORLD_FILE)
world_list = grabfile(world_file)
world_modified = False
world_warnings = set()
class WorldSelectedSet(EditablePackageSet):
description = "Set of packages that were directly installed by the user"
- def __init__(self, root):
+ def __init__(self, eroot):
super(WorldSelectedSet, self).__init__()
# most attributes exist twice as atoms and non-atoms are stored in
# separate files
self._lock = None
- self._filename = os.path.join(os.sep, root, WORLD_FILE)
+ self._filename = os.path.join(os.sep, eroot, WORLD_FILE)
self.loader = ItemFileLoader(self._filename, self._validate)
self._mtime = None
- self._filename2 = os.path.join(os.sep, root, WORLD_SETS_FILE)
+ self._filename2 = os.path.join(os.sep, eroot, WORLD_SETS_FILE)
self.loader2 = ItemFileLoader(self._filename2, self._validate2)
self._mtime2 = None