[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: create stamp file a bit in the past so that the next run in <24h thinks its older than 24h

Holger Levsen holger at moszumanska.debian.org
Tue Sep 22 16:49:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 03d5d90480a80ed300a7b9a2779474de4cbc10d3
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Sep 22 18:44:15 2015 +0200

    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(-)

diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh
index 90427db..0fddb1d 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}
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list