Update comments about ROOTPATH:
authorZac Medico <zmedico@gentoo.org>
Sat, 1 Dec 2007 01:38:04 +0000 (01:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 1 Dec 2007 01:38:04 +0000 (01:38 -0000)
sandbox's bashrc sources /etc/profile which unsets ROOTPATH,
so we have to back it up and restore it. (trunk r8775:8777)

svn path=/main/branches/2.1.2/; revision=8778

bin/ebuild.sh
pym/portage.py

index 128a7d6cc45bbf008f7e796bac2265657c80c64e..2f015d3a696860d75f765e278dd152ff2bc5f139 100755 (executable)
@@ -15,7 +15,8 @@ export SANDBOX_READ="${SANDBOX_READ}:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}"
 # environment by modifying our PATH.
 unset BASH_ENV
 
-# 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.
 if [ -n "${PORTAGE_ROOTPATH}" ] ; then
        export ROOTPATH=${PORTAGE_ROOTPATH}
        unset PORTAGE_ROOTPATH
index db3a415ad8b473f2571d38b7a6c45a3f40a6183b..ee39a537dbaa6d7a760c86d68c93823d7c687653 100644 (file)
@@ -2565,7 +2565,8 @@ class config:
                                        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