aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Alexander Færøy <eroyf@eroyf.org> 2007-05-04 12:55:57 +0000
committerAvatar Alexander Færøy <eroyf@eroyf.org> 2007-05-04 12:55:57 +0000
commit05f94ff0fa0701007f1c72f946900971216abc4f (patch)
tree2aaa2cc7ffb961d4db3ac9bb40700547c19fef1d
parentbf2b471b2bb33de86cb99e9b3bcece107cad18bf (diff)
downloadpaludis-05f94ff0fa0701007f1c72f946900971216abc4f.tar.gz
paludis-05f94ff0fa0701007f1c72f946900971216abc4f.tar.xz
Added patch to use canonicalise instead of readlink. Thanks to Robert S. Gerus.
-rwxr-xr-xhooks/write_cache_clean.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/write_cache_clean.bash b/hooks/write_cache_clean.bash
index 273ba34..c0a3837 100755
--- a/hooks/write_cache_clean.bash
+++ b/hooks/write_cache_clean.bash
@@ -27,7 +27,7 @@ einfo_unhooked "Cleaning write cache for ebuild format repositories..."
while read repo ; do
wcloc=$(${PALUDIS_COMMAND} --configuration-variable ${repo} write_cache )
- [[ $(readlink -f ${wcloc} ) == "/var/empty" ]] && continue
+ [[ $(canonicalise ${wcloc} ) == "/var/empty" ]] && continue
wcloc="${wcloc}/${repo}"
[[ $(echo "${wcloc}"/* ) != "${wcloc}/*" ]] || continue