aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-04 12:54:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-04 12:54:32 +0000
commit4af8405a574bdb5cca4a98b37096f53354f78c6e (patch)
tree8e4dd3a3cd44fe2b82f2d2812c4c7687bc517221
parentf3166495811fcad0fd2482984b2f618f498f6b19 (diff)
downloadpaludis-4af8405a574bdb5cca4a98b37096f53354f78c6e.tar.gz
paludis-4af8405a574bdb5cca4a98b37096f53354f78c6e.tar.xz
Fix
-rwxr-xr-xhooks/write_cache_clean.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/write_cache_clean.bash b/hooks/write_cache_clean.bash
index c06cdef..b4f9d1d 100755
--- a/hooks/write_cache_clean.bash
+++ b/hooks/write_cache_clean.bash
@@ -28,6 +28,8 @@ while read repo ; do
wcloc=$(${PALUDIS_COMMAND} --configuration-variable ${repo} write_cache )
[[ $(readlink -f ${wcloc} ) == "/var/empty" ]] && continue
+ wcloc="${wcloc}/${repo}"
+
[[ $(echo "${wcloc}"/* ) != "${wcloc}/*" ]] || continue
echo rm -fr "${wcloc}/*" 1>&2
rm -fr "${wcloc}"/* || eerror "Couldn't clear cache for ${repo} at ${wcloc}"