summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 6606fe8fc..4d75d626a 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2579,7 +2579,8 @@ class config(object):
if v is not None:
mydict[k] = v
- # sandbox unsets ROOTPATH, so we have to back it up and restore it.
+ # sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
+ # so we have to back it up and restore it.
rootpath = mydict.get("ROOTPATH")
if rootpath:
mydict["PORTAGE_ROOTPATH"] = rootpath