summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-30 23:43:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-30 23:43:59 +0000
commiteedb253d6e2fe2a0d0ab46fee26730e21a3bdafc (patch)
tree357fd8ac7fa7a212217c602d96e3c3d735072fff /bin
parent9415d6aeffb300d885713dc4d312afdeb26ba454 (diff)
downloadportage-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 'bin')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 2a5a1a53d..bf9716acb 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -15,6 +15,12 @@ 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.
+if [ -n ${PORTAGE_ROOTPATH} ] ; then
+ export ROOTPATH=${PORTAGE_ROOTPATH}
+ unset PORTAGE_ROOTPATH
+fi
+
if [ ! -z "${PORTAGE_GPG_DIR}" ]; then
SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_GPG_DIR}"
fi