aboutsummaryrefslogtreecommitdiff
path: root/ebuild/pkg_postinst.bash
diff options
context:
space:
mode:
Diffstat (limited to 'ebuild/pkg_postinst.bash')
-rw-r--r--ebuild/pkg_postinst.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/ebuild/pkg_postinst.bash b/ebuild/pkg_postinst.bash
index 89cf1ab..ac28a4b 100644
--- a/ebuild/pkg_postinst.bash
+++ b/ebuild/pkg_postinst.bash
@@ -28,6 +28,9 @@ pkg_postinst()
ebuild_f_postinst()
{
+ local old_sandbox_write="${SANDBOX_WRITE}"
+ SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
+
if hasq "postinst" ${RESTRICT} ; then
ebuild_section "Skipping pkg_postinst (RESTRICT)"
elif hasq "postinst" ${SKIP_FUNCTIONS} ; then
@@ -37,5 +40,7 @@ ebuild_f_postinst()
pkg_postinst
ebuild_section "Done pkg_postinst"
fi
+
+ SANDBOX_WRITE="${old_sandbox_write}"
}