diff options
author | Mattia Rizzolo <mattia@debian.org> | 2015-12-09 23:48:10 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-12-10 00:49:48 +0100 |
commit | c56600e2bdc107fc564c51bcc1eeb00118e48376 (patch) | |
tree | 3f3da47728f19043a84abf22b1f1d10dd401be93 | |
parent | ccf0de23178169e5fc37d5cd7ddf569647182edf (diff) | |
download | jenkins.debian.net-c56600e2bdc107fc564c51bcc1eeb00118e48376.tar.xz |
reproducible: build: another case of ='' => IS NULL
-rwxr-xr-x | bin/reproducible_build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 0c51a6e8..8cf68fb3 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -437,7 +437,7 @@ choose_package() { 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', job='$JOB' WHERE package_id='$SRCPKGID' AND date_build_started=''" + sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='$DATE', job='$JOB' WHERE package_id='$SRCPKGID' AND date_build_started IS NULL" RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT date_build_started FROM schedule WHERE package_id='$SRCPKGID' AND date_build_started='$DATE' AND job='$JOB'") if [ -z "$RESULT" ] ; then echo "hm, seems $SRCPACKAGE is building somewhere… failed to update the schedule table with our build ($SRCPKGID, $DATE, $JOB)." |