Allow cache directories to be symlinks as well (Closes: #741934).

This commit is contained in:
Daniel Baumann 2014-04-27 12:28:29 +02:00
parent 03e6d8d5a6
commit 389dd5f278
1 changed files with 1 additions and 1 deletions

View File

@ -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)" ]