summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-10-27 12:09:39 -0700
committerZac Medico <zmedico@gentoo.org>2010-10-27 12:09:39 -0700
commit99a5dc4f3b0de5deb9b68a8f0924d3d41e054d80 (patch)
tree233933a38b783a3b660eca8a162417dce657d779
parentOnly addwrite for tmp dirs if sandbox is enabled. (diff)
downloadportage-99a5dc4f3b0de5deb9b68a8f0924d3d41e054d80.tar.gz
portage-99a5dc4f3b0de5deb9b68a8f0924d3d41e054d80.tar.bz2
portage-99a5dc4f3b0de5deb9b68a8f0924d3d41e054d80.zip
ebuild: move SANDBOX_ON=0 setting later
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 42ca1feb7..4b831ef32 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -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 "$@"
}