aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-04 18:59:21 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-05-04 18:59:21 +0000
commitffb66c65756ed3911bf11fe70ec0cf783363d6ab (patch)
treef54dcac64347781dc592207f78f856e7df1c2745
parent09e3a1371dc341499fa6cc5a61a9e3e529f3b7b1 (diff)
downloadpaludis-ffb66c65756ed3911bf11fe70ec0cf783363d6ab.tar.gz
paludis-ffb66c65756ed3911bf11fe70ec0cf783363d6ab.tar.xz
Allow extra pkg_ sandbox privs in pkg_setup
-rw-r--r--ebuild/pkg_setup.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/ebuild/pkg_setup.bash b/ebuild/pkg_setup.bash
index 4bf709b..75cf2f6 100644
--- a/ebuild/pkg_setup.bash
+++ b/ebuild/pkg_setup.bash
@@ -28,6 +28,9 @@ pkg_setup()
ebuild_f_setup()
{
+ local old_sandbox_write="${SANDBOX_WRITE}"
+ SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
+
if hasq "setup" ${RESTRICT} ; then
ebuild_section "Skipping pkg_setup (RESTRICT)"
elif hasq "setup" ${SKIP_FUNCTIONS} ; then
@@ -37,5 +40,7 @@ ebuild_f_setup()
pkg_setup
ebuild_section "Done pkg_setup"
fi
+
+ SANDBOX_WRITE="${old_sandbox_write}"
}