From 389dd5f27861e7658f3eab133f4227882d99e31c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 27 Apr 2014 12:28:29 +0200 Subject: Allow cache directories to be symlinks as well (Closes: #741934). --- functions/cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/cache.sh b/functions/cache.sh index 79a8b6893..42d45d63a 100755 --- a/functions/cache.sh +++ b/functions/cache.sh @@ -14,7 +14,7 @@ Restore_cache () if [ "${LB_CACHE}" = "true" ] && [ "${LB_CACHE_PACKAGES}" = "true" ] then - if [ -d "${DIRECTORY}" ] + if [ -e "${DIRECTORY}" ] then # Restore old cache if [ "$(stat --printf %d ${DIRECTORY})" = "$(stat --printf %d chroot/var/cache/apt/archives)" ] -- cgit v1.2.3