summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-08-10 21:45:00 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2015-08-10 21:45:00 +0200
commit2dcb4dc06ea2b1a758f30c7d16723929e659f855 (patch)
tree9fa57374ddc87efa976d114e2dc0e9b700d7a4cc /functions
parent421419c7fc96df18c422102a52879dd6860725a6 (diff)
downloadvyos-live-build-2dcb4dc06ea2b1a758f30c7d16723929e659f855.tar.gz
vyos-live-build-2dcb4dc06ea2b1a758f30c7d16723929e659f855.zip
Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300).
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/cache.sh2
1 files changed, 1 insertions, 1 deletions
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