summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-08 14:23:40 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-08 14:23:40 +0200
commitb742eed1f97de637ba660b7d86229bb17ee23b0c (patch)
treeacbd71fca57831e5b271d64b6376cd7889d42dfd /bin
parentbb7df86fba889e94e2c634c35142da8caa268a6e (diff)
downloadjenkins.debian.net-b742eed1f97de637ba660b7d86229bb17ee23b0c.tar.xz
reproducible: only select packages which are scheduled for the arch we are building for
Diffstat (limited to 'bin')
-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 4cccab14..09b493d8 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -332,7 +332,9 @@ 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")
+ WHERE sch.date_build_started = ''
+ AND s.architecture='$ARCH'
+ ORDER BY date_scheduled LIMIT 1")
SUITE=$(echo $RESULT|cut -d "|" -f1)
SRCPKGID=$(echo $RESULT|cut -d "|" -f2)
SRCPACKAGE=$(echo $RESULT|cut -d "|" -f3)