aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <alip@exherbo.org> 2010-01-09 15:28:27 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2010-01-09 14:34:18 +0100
commitaa1a7f5bda9ec827cdfd7e60a4c93a141f15caef (patch)
treece191fe860ef1b0c4042c75644eb63c67d441f83
parent8240b2756ac682261915afbae5a84558011d673a (diff)
downloadpaludis-aa1a7f5bda9ec827cdfd7e60a4c93a141f15caef.tar.gz
paludis-aa1a7f5bda9ec827cdfd7e60a4c93a141f15caef.tar.xz
Allow network access in fetch_extra
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash10
1 files changed, 8 insertions, 2 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 b255f86..3170424 100644
--- a/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/src_fetch_extra.bash
@@ -32,7 +32,10 @@ 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}"
+ if sydboxcheck >/dev/null 2>&1; then
+ addwrite "${FETCHEDDIR}"
+ sydboxcmd sandunbox/net
+ fi
fi
if hasq "fetch_extra" ${SKIP_FUNCTIONS} ; then
@@ -45,7 +48,10 @@ exheres_internal_fetch_extra()
if [[ -z "${PALUDIS_DO_NOTHING_SANDBOXY}" ]]; then
SANDBOX_WRITE="${old_sandbox_write}"
- sydboxcheck >/dev/null 2>&1 && rmwrite "${FETCHEDDIR}"
+ if sydboxcheck >/dev/null 2>&1; then
+ rmwrite "${FETCHEDDIR}"
+ sydboxcmd sandbox/net
+ fi
fi
true
}