[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: be more verbose
Holger Levsen
holger at moszumanska.debian.org
Wed Sep 23 21:36:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 83d842f065cc7ea07df3be19b18c33f08a24f815
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Sep 23 23:36:12 2015 +0200
reproducible: be more verbose
---
bin/reproducible_build.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index de1b269..b2dbead 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list