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:
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):