Allow cache directories to be symlinks as well (Closes: #741934).
authorDaniel Baumann <mail@daniel-baumann.ch>
Sun, 27 Apr 2014 10:28:29 +0000 (12:28 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Sun, 27 Apr 2014 10:28:29 +0000 (12:28 +0200)
functions/cache.sh

index 79a8b68..42d45d6 100755 (executable)
@@ -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)" ]