X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fschroot%2Ffiles%2Fschroot-dsa%2Fconfig;h=41178bfd8ed48a57154e7568b188de6574302701;hb=a4868c9e3fb0c62d977d29f194ea5806f6b7e3d4;hp=d2cc36869e1207a1dbacf810b7afb45a3f49883f;hpb=bab84ed1f4f426dbcd223672431827444768848e;p=mirror%2Fdsa-puppet.git diff --git a/modules/schroot/files/schroot-dsa/config b/modules/schroot/files/schroot-dsa/config index d2cc36869..41178bfd8 100644 --- a/modules/schroot/files/schroot-dsa/config +++ b/modules/schroot/files/schroot-dsa/config @@ -20,14 +20,18 @@ if [ "$CHROOT_SESSION_PURGE" = "true" ]; then case $CHROOT_DESCRIPTION in "["*-*_*-dchroot"]"*) chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}" - suitevariant_arch_tuple="${chroot_type%%-dchroot-*}" + suitevariant_arch_tuple="${chroot_type%%-dchroot}" suitevariant=${suitevariant_arch_tuple%_*} + SUITE_ARCH=${suitevariant_arch_tuple##*_} SUITE_BASE=${suitevariant%-*} SUITE_VARIANT=${suitevariant##*-} ;; "["*_*-dchroot"]"*) chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}" - SUITE_BASE="${chroot_type%%_*}" + suite_arch_tuple="${chroot_type%%-dchroot}" + SUITE_ARCH=${suite_arch_tuple##*_} + SUITE_BASE="${suite_arch_tuple%%_*}" + SUITE_VARIANT="" ;; *) if [ "$STAGE" = "setup-start" ]; then @@ -43,7 +47,7 @@ CHROOT_FILE_UNPACK_DIR=/srv/chroot/schroot-unpack if [ -e /etc/schroot/dsa/default-mirror ]; then MIRROR=$(cat /etc/schroot/dsa/default-mirror ) fi -MIRROR=${MIRROR:-http.debian.net} +MIRROR=${MIRROR:-http://ftp.debian.org/debian/} if [ "$(basename "$0")" = "00check" ] && [ "$CHROOT_TYPE" = "file" ] &&