summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-07-13 17:24:52 +0000
committerHolger Levsen <holger@layer-acht.org>2015-07-23 11:42:16 +0200
commitfac086f4263eb29eed4b425bc98a35b693c79958 (patch)
tree829f64abda7fe1b5f7b8da6a0434fc98923ede82 /bin
parentdf923cd62d494512e39aa2b18268f35d249e8de7 (diff)
downloadjenkins.debian.net-fac086f4263eb29eed4b425bc98a35b693c79958.tar.xz
reproducible: build: wrap the long choose_package() query in multiple lines
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 7ee72822..39c9a8a1 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -325,7 +325,10 @@ call_debbindiff_on_changes_files() {
}
choose_package () {
- local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT s.suite, s.id, s.name, sch.date_scheduled, sch.save_artifacts, sch.notify, s.notify_maintainer, sch.builder FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = '' ORDER BY date_scheduled LIMIT 1")
+ local RESULT=$(sqlite3 -init $INIT ${PACKAGES_DB} "
+ SELECT s.suite, s.id, s.name, sch.date_scheduled, sch.save_artifacts, sch.notify, s.notify_maintainer, sch.builder
+ FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id
+ WHERE sch.date_build_started = '' ORDER BY date_scheduled LIMIT 1")
SUITE=$(echo $RESULT|cut -d "|" -f1)
SRCPKGID=$(echo $RESULT|cut -d "|" -f2)
SRCPACKAGE=$(echo $RESULT|cut -d "|" -f3)