diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-30 23:43:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-30 23:43:59 +0000 |
commit | eedb253d6e2fe2a0d0ab46fee26730e21a3bdafc (patch) | |
tree | 357fd8ac7fa7a212217c602d96e3c3d735072fff /pym | |
parent | 9415d6aeffb300d885713dc4d312afdeb26ba454 (diff) | |
download | portage-eedb253d6e2fe2a0d0ab46fee26730e21a3bdafc.tar.gz portage-eedb253d6e2fe2a0d0ab46fee26730e21a3bdafc.tar.bz2 portage-eedb253d6e2fe2a0d0ab46fee26730e21a3bdafc.zip |
sandbox unsets ROOTPATH, so we have to back it up on the python
side then restore it on the bash side.
svn path=/main/trunk/; revision=8768
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index d4539b99a..8196526b1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -867,7 +867,7 @@ class config(object): "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", ] @@ -2579,6 +2579,11 @@ class config(object): 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): |