From aa00876a8ed562103298169a2487e2a10fc651a4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 11 Oct 2014 21:50:26 +0200 Subject: reproducible: increase timeout for accessing to 1m and fail if sources db cannot be updated properly --- bin/reproducible_build.sh | 1 + bin/reproducible_setup.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index c1a403ab..6e9aa19c 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -52,6 +52,7 @@ update_sources_table() { if [ $P_IN_TMPFILE -ne $P_IN_SOURCES ] ; then echo "DEBUG: P_IN_SOURCES = $P_IN_SOURCES" echo "DEBUG: P_IN_TMPFILE = $P_IN_TMPFILE" + exit 1 fi sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_stats VALUES (\"sid\", \"${P_IN_SOURCES}\")" rm $CSVFILE # $TMPFILE is still being used diff --git a/bin/reproducible_setup.sh b/bin/reproducible_setup.sh index 7804f7d7..f56b0d11 100755 --- a/bin/reproducible_setup.sh +++ b/bin/reproducible_setup.sh @@ -30,7 +30,7 @@ fi # 30 seconds timeout when trying to get a lock INIT=/var/lib/jenkins/reproducible.init cat >/var/lib/jenkins/reproducible.init <<-EOF -.timeout 30000 +.timeout 60000 EOF # blacklist some packages -- cgit v1.2.3-70-g09d2