From ba67645163f788eb1ba9657cbb579802f2d300bb Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 30 Jul 2015 10:50:29 +0200 Subject: [PATCH] Add support for jessie-kfreebsd suites MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../schroot/files/schroot-setup.d/99builddsourceslist | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/schroot/files/schroot-setup.d/99builddsourceslist b/modules/schroot/files/schroot-setup.d/99builddsourceslist index 3828c175..95a33d38 100755 --- a/modules/schroot/files/schroot-setup.d/99builddsourceslist +++ b/modules/schroot/files/schroot-setup.d/99builddsourceslist @@ -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-) -- 2.39.2