aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <alip@exherbo.org> 2009-09-10 20:56:02 +0300
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-10 18:59:28 +0100
commitcc49aa1881778f51108bfc11d730552ef9f890cb (patch)
tree0c468f9ff5df4fc2a7383ac142d1bbe21b095d86
parent1e1a6f8d56ef4b6de02e2263ae0b6262de752060 (diff)
downloadpaludis-cc49aa1881778f51108bfc11d730552ef9f890cb.tar.gz
paludis-cc49aa1881778f51108bfc11d730552ef9f890cb.tar.xz
addwrite CCACHE_DIR
Adding $CCACHE_DIR in sydbox.conf doesn't work because CCACHE_DIR is ideally set in /etc/paludis/bashrc and by the time it's sourced we're already under sydbox. Signed-off-by: Ali Polatel <alip@exherbo.org>
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index 1727d9c..0b4122f 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -446,7 +446,10 @@ ebuild_load_em_up_dan()
done
if [[ -z ${PALUDIS_DO_NOTHING_SANDBOXY} ]] ; then
- [[ -n ${CCACHE_DIR} ]] && export SANDBOX_WRITE=${SANDBOX_WRITE}:${CCACHE_DIR}
+ if [[ -n ${CCACHE_DIR} ]]; then
+ export SANDBOX_WRITE=${SANDBOX_WRITE}:${CCACHE_DIR}
+ sydboxcheck 2>/dev/null && addwrite "${CCACHE_DIR}"
+ fi
fi
[[ -z ${CBUILD} ]] && export CBUILD=${CHOST}