]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 3828c175b6d14aeaa1e7ca4ca29a579b191f9c81..95a33d38e092a07cc7ffd41a7c5039315c3fc515 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-)