From 2dcb4dc06ea2b1a758f30c7d16723929e659f855 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 10 Aug 2015 21:45:00 +0200 Subject: Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen (Closes: #789300). --- functions/cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/cache.sh b/functions/cache.sh index bea0647ca..467a67491 100755 --- a/functions/cache.sh +++ b/functions/cache.sh @@ -17,7 +17,7 @@ Restore_cache () if [ -e "${DIRECTORY}" ] then # Restore old cache - if [ "$(stat --printf %d ${DIRECTORY})" = "$(stat --printf %d chroot/var/cache/apt/archives)" ] + if [ "$(stat --printf %d ${DIRECTORY}/)" = "$(stat --printf %d chroot/var/cache/apt/archives/)" ] then # with hardlinks find "${DIRECTORY}" -name "*.deb" | xargs cp -fl -t chroot/var/cache/apt/archives -- cgit v1.2.3