diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-26 13:20:41 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-26 13:20:41 +0200 |
commit | a7426f6e35c734de89cca6865423b48b64ee2d1a (patch) | |
tree | 7e58526c6c15cd6b387bc8170fef13e40911583c | |
parent | 00a635b63094060db42c1d902b7f2f4df69492c5 (diff) | |
download | jenkins.debian.net-a7426f6e35c734de89cca6865423b48b64ee2d1a.tar.xz |
reproducible: debug for the win
-rwxr-xr-x | bin/reproducible_build.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index c53ce92b..375ac124 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -395,11 +395,13 @@ choose_package() { # 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 + set -x 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)." handle_race_condition fi + set +x else echo "hm, seems $SRCPACKAGE is building somewhere… schedule table now listed it as building somewhere else." handle_race_condition |