diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index fe8088e4c..478ec235d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1007,7 +1007,7 @@ class config: "FEATURES", "PORTAGE_BIN_PATH", "PORTAGE_CONFIGROOT", "PORTAGE_DEPCACHEDIR", "PORTAGE_GID", "PORTAGE_INST_GID", "PORTAGE_INST_UID", - "PORTAGE_PYM_PATH", "PORTDIR_OVERLAY", "ROOT", "USE_ORDER", + "PORTAGE_PYM_PATH", "PORTDIR_OVERLAY", "ROOT", "ROOTPATH", "USE_ORDER", "XARGS", ] @@ -2565,6 +2565,11 @@ class config: if v is not None: mydict[k] = v + # sandbox unsets ROOTPATH, so we have to back it up and restore it. + rootpath = mydict.get("ROOTPATH") + if rootpath: + mydict["PORTAGE_ROOTPATH"] = rootpath + return mydict def thirdpartymirrors(self): |