aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-09-01 14:12:09 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-09-01 14:18:47 +0200
commit8a645da5403112e52a456e6e40df1aaeaa8eac0c (patch)
treeebc37ae612a3ec5e22885e948e11dec74ac02d87
parent15e65f0b3c8bf419ff86d44764c0959ff27d5ea7 (diff)
downloadpaludis-8a645da5403112e52a456e6e40df1aaeaa8eac0c.tar.gz
paludis-8a645da5403112e52a456e6e40df1aaeaa8eac0c.tar.xz
exheres-0: Allow write access to FETCHEDDIR in src_fetch_extra()
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash b/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash
index cd83cb6..1e9d50c 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash
@@ -28,6 +28,12 @@ src_fetch_extra()
exheres_internal_fetch_extra()
{
+ local old_sandbox_write="${SANDBOX_WRITE}"
+ if [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]]; then
+ SANDBOX_WRITE="${SANDBOX_WRITE+${SANDBOX_WRITE}:}${FETCHEDDIR}"
+ sydboxcheck >/dev/null 2>&1 && addwrite "${FETCHEDDIR}"
+ fi
+
if hasq "fetch_extra" ${SKIP_FUNCTIONS} ; then
ebuild_section "Skipping src_fetch_extra (SKIP_FUNCTIONS)"
else
@@ -35,6 +41,12 @@ exheres_internal_fetch_extra()
src_fetch_extra
ebuild_section "Done src_fetch_extra"
fi
+
+ if [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]]; then
+ SANDBOX_WRITE="${old_sandbox_write}"
+ sydboxcheck >/dev/null 2>&1 && rmwrite "${FETCHEDDIR}"
+ fi
+ true
}