From be0b4ef66576d66fb41c34552192e627b9dd3b86 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 13 Aug 2017 18:36:04 +0100 Subject: [PATCH] bin/mdw-sbuild-server: Keep track of the target CPU architectures. Nothing needs this yet, but it'll be handy soon. --- bin/mdw-sbuild-server | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/mdw-sbuild-server b/bin/mdw-sbuild-server index d04f5a2..1ac507f 100755 --- a/bin/mdw-sbuild-server +++ b/bin/mdw-sbuild-server @@ -171,6 +171,7 @@ case "$#,$1" in unset first rest; anyp=nil depp=nil allp=nil wantarchs=$(sed -n '/^[Aa]rchitecture:/ s/^[^:]*: *//p' "$dsc") : ${wantarchs:=any} + unset buildarchs buildarchs_seen=: ## Work through the available targets assigning builds to them. This is ## actually a little tricky. @@ -182,6 +183,14 @@ case "$#,$1" in */*) target=${archs%/*} host=${archs#*/} ;; *) target=$archs host=$archs; t=$suite-$target/$host ;; esac + case $buildarchs_seen in + *:$target:*) + ;; + *) + buildarchs=${buildarchs+$buildarchs }$target + buildarchs_seen=$buildarchs_seen$target: + ;; + esac ## Work through the architectures which we can build. for arch in $wantarchs; do -- 2.11.0