diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-08-10 21:45:00 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-08-10 21:45:00 +0200 |
commit | 2dcb4dc06ea2b1a758f30c7d16723929e659f855 (patch) | |
tree | 9fa57374ddc87efa976d114e2dc0e9b700d7a4cc /scripts | |
parent | 421419c7fc96df18c422102a52879dd6860725a6 (diff) | |
download | vyos-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 'scripts')
-rwxr-xr-x | scripts/build/chroot_archives | 4 | ||||
-rwxr-xr-x | scripts/build/installer_debian-installer | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index a52a44d22..029afe7df 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -220,8 +220,8 @@ EOF rm -rf chroot/root/packages mkdir -p chroot/root/packages - if [ "$(stat --printf %d config/packages.chroot)" = "$(stat --printf %d chroot/root/packages)" ] || - [ "$(stat --printf %d config/packages)" = "$(stat --printf %d chroot/root/packages)" ] + if [ "$(stat --printf %d config/packages.chroot/)" = "$(stat --printf %d chroot/root/packages/)" ] || + [ "$(stat --printf %d config/packages/)" = "$(stat --printf %d chroot/root/packages/)" ] then CP_OPTIONS="-l" fi diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index 5445753da..b9f44b5d8 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -224,7 +224,7 @@ Download_file () { fi fi - if [ "$(stat --printf %d "${_LB_CACHE_DIR}")" = "$(stat --printf %d ./)" ] + if [ "$(stat --printf %d "${_LB_CACHE_DIR}/")" = "$(stat --printf %d ./)" ] then CP_OPTIONS="-l" fi |