From e9a9a828c0afd2598b3d4d008f80f4de96ecc4c7 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Fri, 2 Oct 2015 13:15:31 +0200 Subject: [PATCH] Only create kfreebsd chroot aliases on kfreebsd-* Signed-off-by: Aurelien Jarno --- modules/schroot/files/setup-dchroot | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/schroot/files/setup-dchroot b/modules/schroot/files/setup-dchroot index cfc47bfd0..d015c030e 100755 --- a/modules/schroot/files/setup-dchroot +++ b/modules/schroot/files/setup-dchroot @@ -122,12 +122,18 @@ EOF *) if [ -z "$extra" ] && [ -z "$ubuntu" ]; then genschrootconf "$suite" "$arch" "$target" "backports" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "backports-sloppy" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "kfreebsd" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "lts" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "proposed-updates" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "security" - [ -n "$buildd" ] && genschrootconf "$suite" "$arch" "$target" "kfreebsd-security" + if [ -n "$buildd" ] ; then + genschrootconf "$suite" "$arch" "$target" "backports-sloppy" + genschrootconf "$suite" "$arch" "$target" "lts" + genschrootconf "$suite" "$arch" "$target" "proposed-updates" + genschrootconf "$suite" "$arch" "$target" "security" + case "$arch" in + kfreebsd-*) + genschrootconf "$suite" "$arch" "$target" "kfreebsd" + genschrootconf "$suite" "$arch" "$target" "kfreebsd-security" + ;; + esac + fi fi esac return 0 -- 2.20.1