From 03d5d90480a80ed300a7b9a2779474de4cbc10d3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 22 Sep 2015 18:44:15 +0200 Subject: reproducible: create stamp file a bit in the past so that the next run in <24h thinks its older than 24h --- bin/reproducible_setup_pbuilder.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_setup_pbuilder.sh') diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh index 90427db6..0fddb1de 100755 --- a/bin/reproducible_setup_pbuilder.sh +++ b/bin/reproducible_setup_pbuilder.sh @@ -108,8 +108,8 @@ setup_pbuilder() { || ( echo ; echo "Package ${PKG} is not installed at all or probably rather not in our version, so removing the chroot and exiting now." ; sudo rm -v /var/cache/pbuilder/${NAME}-new.tgz ; rm $TMPFILE $LOG ; exit 1 ) done sudo mv /var/cache/pbuilder/${NAME}-new.tgz /var/cache/pbuilder/${NAME}.tgz - # create stamp file to record initial creation date - touch /var/log/jenkins/${NAME}.tgz.stamp + # create stamp file to record initial creation date minus some hours so the file will be older than 24h when checked in <24h... + touch -d "$(date -u -d '6 hours ago' '+%Y-%m-%d %H:%M')" /var/log/jenkins/${NAME}.tgz.stamp rm ${TMPFILE} ${LOG} } -- cgit v1.2.3-54-g00ecf