aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
diff options
context:
space:
mode:
authorAvatar Ali Polatel <polatel@gmail.com> 2009-05-27 01:22:12 +0300
committerAvatar Ali Polatel <polatel@gmail.com> 2009-06-28 22:54:05 +0300
commit273d1e571ac3dae1c60dfdd0803f281c2482abb5 (patch)
tree82fb1d58600eae7456048d39ede567b0b44eb492 /paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
parentf6a567c271a904c0834177691b61bb74692577f9 (diff)
downloadpaludis-273d1e571ac3dae1c60dfdd0803f281c2482abb5.tar.gz
paludis-273d1e571ac3dae1c60dfdd0803f281c2482abb5.tar.xz
Add sydbox support
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash10
1 files changed, 8 insertions, 2 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
index b01cd81e9..ee70aaba3 100644
--- a/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/pkg_preinst.bash
@@ -33,7 +33,10 @@ pkg_preinst()
exheres_internal_preinst()
{
local old_sandbox_write="${SANDBOX_WRITE}"
- [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
+ if [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]]; then
+ SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${ROOT%/}/"
+ sydboxcheck >/dev/null 2>&1 && addwrite "${ROOT}"
+ fi
if hasq "preinst" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping pkg_preinst (SKIP_FUNCTIONS)"
@@ -43,6 +46,9 @@ exheres_internal_preinst()
ebuild_section "Done pkg_preinst"
fi
- [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]] && SANDBOX_WRITE="${old_sandbox_write}"
+ if [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]]; then
+ SANDBOX_WRITE="${old_sandbox_write}"
+ sydboxcheck >/dev/null 2>&1 && rmwrite "${ROOT}"
+ fi
true
}