From b244da1bc0e76d101ca0be812b72f72f0f064455 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 30 Nov 2007 23:46:09 +0000 Subject: sandbox unsets ROOTPATH, so we have to back it up on the python side then restore it on the bash side. (trunk r8768) svn path=/main/branches/2.1.2/; revision=8769 --- bin/ebuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-1-g7c22