diff options
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/_global_updates.py | 2 | ||||
-rw-r--r-- | pym/portage/_sets/files.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index ed5141121..b06cab36f 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -49,7 +49,7 @@ def _global_updates(trees, prev_mtimes): # 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() diff --git a/pym/portage/_sets/files.py b/pym/portage/_sets/files.py index c474f1b5f..21993316b 100644 --- a/pym/portage/_sets/files.py +++ b/pym/portage/_sets/files.py @@ -208,16 +208,16 @@ class ConfigFileSet(PackageSet): 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 |