X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fporterbox%2Ffiles%2Fsetup-all-dchroots;h=e483895a913f28159be81087b09d5eae004f2cc3;hb=e17f70ac0bb3bf9d91af806d2aa1acecbaadfbbd;hp=15044f7739e8240f0af60e85498d08c787c845db;hpb=711724f582aa734ed8501a3cc29fec99bd4bd2b9;p=mirror%2Fdsa-puppet.git diff --git a/modules/porterbox/files/setup-all-dchroots b/modules/porterbox/files/setup-all-dchroots index 15044f773..e483895a9 100755 --- a/modules/porterbox/files/setup-all-dchroots +++ b/modules/porterbox/files/setup-all-dchroots @@ -39,6 +39,9 @@ get_suites() { s390) echo "wheezy squeeze" ;; + sparc) + echo "sid wheezy squeeze" + ;; *) echo "sid jessie wheezy squeeze" ;; @@ -53,6 +56,11 @@ case "$DPKGARCH" in armhf) archs="$archs armel" ;; + armel) + if [ "$(uname -m)" = "armv7l" ] && grep -w vfpv3 -q /proc/cpuinfo ; then + archs="$archs armhf" + fi + ;; s390|s390x) archs="s390 s390x" ;; @@ -62,7 +70,13 @@ err=0 for a in $archs; do for s in `get_suites "$a"`; do - setup-dchroot -f -a "$a" "$s" || err=1 + if ! setup-dchroot -f -a "$a" "$s"; then + err=1 + echo >&2 + echo >&2 "Error: setting up $s:$a dchroot failed." + echo >&2 + echo >&2 + fi done done