summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-26 12:16:32 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-26 12:16:32 +0200
commite3e241e4f89eae33f5d75e49b2ec07db415402d5 (patch)
tree47ce37d3775bf28c614cfd081e651a3dd670686e
parent3214bfc79e91782346a9ced4adc1c85d3a95bf39 (diff)
downloadjenkins.debian.net-e3e241e4f89eae33f5d75e49b2ec07db415402d5.tar.xz
reproducible: support the --debug feature of _remote_scheduler.py again
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 04d49776..3a586df3 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -391,7 +391,7 @@ choose_package() {
local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id = '$SRCPKGID'")
if [ -z "$RESULT" ] ; then
# 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=''"
+ 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')"
RESULT=$(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 "$RESULT" ] ; then
handle_race_condition