ebuild: move SANDBOX_ON=0 setting later
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 19:09:39 +0000 (12:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 19:15:59 +0000 (12:15 -0700)
bin/ebuild.sh

index 42ca1feb7da22f4749dfed6f9cf069a7dd034e49..4b831ef3223aac1ba3e6b774e9776e7e7c15e5f4 100755 (executable)
@@ -78,9 +78,6 @@ source "${PORTAGE_BIN_PATH}/isolated-functions.sh"  &>/dev/null
 
 [[ $PORTAGE_QUIET != "" ]] && export PORTAGE_QUIET
 
-# the sandbox is disabled by default except when overridden in the relevant stages
-export SANDBOX_ON="0"
-
 # sandbox support functions; defined prior to profile.bashrc srcing, since the profile might need to add a default exception (/usr/lib64/conftest fex)
 _sb_append_var() {
        local _v=$1 ; shift
@@ -113,6 +110,9 @@ elif [[ $SANDBOX_ON = 1 ]] ; then
        unset x
 fi
 
+# the sandbox is disabled by default except when overridden in the relevant stages
+export SANDBOX_ON=0
+
 lchown() {
        chown -h "$@"
 }