setup-all-dchroots: wheezy is gone, jessie is limited to LTS architectures
[mirror/dsa-puppet.git] / modules / schroot / files / setup-all-dchroots
index 4de0f83..6e08179 100755 (executable)
@@ -41,19 +41,22 @@ else
     MODE=porterbox
 fi
 
+if [ -t 0 ] ; then
+    SILENT=""
+else
+    SILENT="chronic"
+fi
+
 get_suites() {
     case "$1" in
       amd64|i386|armel|armhf)
-        echo "sid buster stretch jessie wheezy"
-        ;;
-      mips64el)
-        echo "sid buster stretch"
+        echo "sid buster stretch jessie"
         ;;
       powerpc)
-        echo "sid         jessie"
+        echo "sid"
         ;;
       *)
-        echo "sid buster stretch jessie"
+        echo "sid buster stretch"
         ;;
     esac
 }
@@ -96,13 +99,13 @@ do_one() {
     case "$MODE" in
         buildd)
             mkdir -p /srv/buildd/unpack
-            if ! chronic setup-dchroot -f -a "$a" $extra -D -d '/srv/buildd/unpack' -K "$s"
+            if ! $SILENT setup-dchroot -f -a "$a" $extra -D -d '/srv/buildd/unpack' -K "$s"
             then
                 return 1
             fi
             ;;
         porterbox)
-            if ! chronic setup-dchroot -f -a "$a" $extra "$s"
+            if ! $SILENT setup-dchroot -f -a "$a" $extra "$s"
             then
                 return 1
             fi