Add support for jessie-kfreebsd suites
authorChristoph Egger <christoph@christoph-egger.org>
Thu, 30 Jul 2015 08:50:29 +0000 (10:50 +0200)
committerHéctor Orón Martínez <zumbi@debian.org>
Thu, 30 Jul 2015 08:50:29 +0000 (10:50 +0200)
  Update the $CHROOT_ALIAS globs to match jessie-kfreebsd suite (which
  have one extra dash in them compared to the relative "normal" suites)

Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
modules/schroot/files/schroot-setup.d/99builddsourceslist

index 3828c17..95a33d3 100755 (executable)
@@ -49,6 +49,16 @@ shopt -s extglob
 if ! echo "$CHROOT_DESCRIPTION" | grep -q '(source chroot)' ; then
     CHROOT_ALIAS="${CHROOT_ALIAS/#experimental-/sid-experimental-}"
     case $CHROOT_ALIAS in
+        +([^-])-kfreebsd-+([^-])-kfreebsd-*-sbuild*)
+        SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1-2 -d-)
+        SUITE_VARIANT=$(echo $CHROOT_ALIAS | cut -f3 -d-)
+        ;;
+        +([^-])-kfreebsd-kfreebsd-*-sbuild*)
+        SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1-2 -d-)
+        if [ ${SUITE_BASE} != "sid" ]; then
+            SUITE_VARIANT="proposed-updates"
+        fi
+        ;;
         +([^-])-+([^-])-@(kfreebsd|hurd)-*-sbuild*)
         SUITE_BASE=$(echo $CHROOT_ALIAS | cut -f1 -d-)
         SUITE_VARIANT=$(echo $CHROOT_ALIAS | cut -f2 -d-)