Allow cache directories to be symlinks as well (Closes: #741934).
This commit is contained in:
parent
03e6d8d5a6
commit
389dd5f278
|
@ -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)" ]
|
||||
|
|
Loading…
Reference in New Issue