[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Add support for jessie-kfreebsd suites



Update the $CHROOT_ALIAS globs to match jessie-kfreebsd suite (which
have one extra dash in them compared to the relative "normal" suites)
---
 etc/99builddsourceslist | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/etc/99builddsourceslist b/etc/99builddsourceslist
index e458222..2cb2974 100755
--- a/etc/99builddsourceslist
+++ b/etc/99builddsourceslist
@@ -43,6 +43,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-)
-- 
2.1.4


Reply to: