summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index fd2f13640..0d9a0e5af 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -977,9 +977,6 @@ class config:
writemsg("!!! Error: %s='%s' is not a directory. Please correct this.\n" % (k, v))
raise portage_exception.DirectoryNotFound(v)
- self.backupenv["PORTAGE_CONFIGROOT"] = config_root
- self.backupenv["ROOT"] = target_root
-
self.depcachedir = DEPCACHE_PATH
if not config_profile_path:
@@ -1329,6 +1326,11 @@ class config:
self.backupenv["PORTAGE_BIN_PATH"] = PORTAGE_BIN_PATH
self.backupenv["PORTAGE_PYM_PATH"] = PORTAGE_PYM_PATH
+ self["PORTAGE_CONFIGROOT"] = config_root
+ self.backup_changes("PORTAGE_CONFIGROOT")
+ self["ROOT"] = target_root
+ self.backup_changes("ROOT")
+
self._init_dirs()
def _init_dirs(self):