From: Adeodato Simó <dato@net.com.org.es>
Date: Fri, 20 Mar 2009 12:24:56 +0000 (+0100)
Subject: trigger.daily: do not require $ARCHS_unstable to be a superset of the rest.
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=940c17baf36bd95914d235d4e2ec12bc25532acc;p=wannabuild.git

trigger.daily: do not require $ARCHS_unstable to be a superset of the rest.
---

diff --git a/trigger.daily b/trigger.daily
index 73b1776..db967a8 100755
--- a/trigger.daily
+++ b/trigger.daily
@@ -158,7 +158,12 @@ echo "fetch and quinn completed: `date -u`"
 echo "fetch and quinn completed: `date -u`" >&3
 
 umask 002
-for a in $ARCHS_unstable ; do
+# Gross hack: we need a list of all architectures, because this loop
+# insists on iterating on arches and then suites, instead of the
+# opposite.
+ALL_ARCHES=$(echo $ARCHS_oldstable $ARCHS_stable $ARCHS_testing $ARCHS_unstable \
+	     | tr ' ' '\n' | sort -u)
+for a in $ALL_ARCHES ; do
 	wanna-build --create-maintenance-lock --database=$a/build-db
 
 	for d in $DISTS ; do