From fac086f4263eb29eed4b425bc98a35b693c79958 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 13 Jul 2015 17:24:52 +0000 Subject: reproducible: build: wrap the long choose_package() query in multiple lines --- bin/reproducible_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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) -- cgit v1.2.3-70-g09d2