summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-26 13:15:16 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-26 13:15:16 +0200
commit00a635b63094060db42c1d902b7f2f4df69492c5 (patch)
tree5ed48f537464aa149dbc701b647182599af33b16 /bin/reproducible_build.sh
parenta9bd5937aa8d5e46e6db875b0175586324a03589 (diff)
downloadjenkins.debian.net-00a635b63094060db42c1d902b7f2f4df69492c5.tar.xz
reproducible: manual testing using these sql commands works, but not in _build.sh - desperate attempt to make it work
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 5499f462..c53ce92b 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -394,6 +394,7 @@ choose_package() {
echo "ok, $SRCPACKAGE is not building anywhere…"
# try to update the schedule with our build attempt, then check no else did it, if so, abort
sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='$DATE', builder='$BUILDER' WHERE package_id='$SRCPKGID' AND date_build_started='' AND (builder='' OR builder='TBD')"
+ sleep 2
local UPDATERESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id='$SRCPKGID' AND date_build_started='$DATE' AND builder='$BUILDER'")
if [ -z "$UPDATERESULT" ] ; then
echo "hm, seems $SRCPACKAGE is building somewhere… failed to update the schedule table with our build ($SRCPKGID, $DATE, $BUILDER)."