summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-23 23:36:12 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-23 23:36:12 +0200
commit83d842f065cc7ea07df3be19b18c33f08a24f815 (patch)
tree6a84b3196963c380b83fa949962ca972841b5522
parent611211b1a73a232db3cb36e189398ab79f8808e6 (diff)
downloadjenkins.debian.net-83d842f065cc7ea07df3be19b18c33f08a24f815.tar.xz
reproducible: be more verbose
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index de1b2692..b2dbead8 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -433,9 +433,11 @@ init_package_build() {
fi
rm -f $BAD_BUILDS
# mark build attempt
- if [ -z "$(sqlite3 -init $INIT ${PACKAGES_DB} 'SELECT date_build_started FROM schedule WHERE package_id = \"$SRCPKGID\"')" ] ; then
+ local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id = '$SRCPKGID'")
+ if [ -z "$RESULT" ] ; then
sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='$DATE', builder='$BUILDER' WHERE package_id = '$SRCPKGID'"
else
+ echo "query resulted in $RESULT"
BAD_LOCKFILE=true
handle_race_condition db
fi