summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-26 12:37:23 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-26 12:37:23 +0200
commit2ec831986474e15aa090ac4c7ce2c1baa7e76576 (patch)
tree765fbd21a5c0f3976a78fb43deb5bbe0f960b645
parent5b54141ba197ba8acd3edee38cae9e5ea6308934 (diff)
downloadjenkins.debian.net-2ec831986474e15aa090ac4c7ce2c1baa7e76576.tar.xz
reproducible: improve output
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 3a586df3..02e55a19 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -388,15 +388,19 @@ choose_package() {
fi
rm -f $BAD_BUILDS
# mark build attempt, first test if none else marked a build attempt recently
+ echo "ok, let's check if $SRCPACKAGE is building anywhere yet…"
local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id = '$SRCPKGID'")
if [ -z "$RESULT" ] ; then
+ 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')"
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
+ echo "hm, seems $SRCPACKAGE is building somewhere… failed to update the schedule table with our build."
handle_race_condition
fi
else
+ echo "hm, seems $SRCPACKAGE is building somewhere… schedule table now listed it as building somewhere else."
handle_race_condition
fi
local ANNOUNCE=""