From ef2752faab0697cc44036d89a5b4f6e08e3081f3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 19 Jul 2011 10:51:20 +0200 Subject: Adding kubuntu mode in order to have different defadefault hooks enabled for ubuntu and kubuntu (needed for #630088). --- scripts/build/lb_chroot_archives | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'scripts/build/lb_chroot_archives') diff --git a/scripts/build/lb_chroot_archives b/scripts/build/lb_chroot_archives index 4b65365d5..d5dedb43a 100755 --- a/scripts/build/lb_chroot_archives +++ b/scripts/build/lb_chroot_archives @@ -136,7 +136,7 @@ EOF fi ;; - ubuntu) + ubuntu|kubuntu) echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}-security ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list if [ "${LB_SOURCE}" = "true" ] @@ -150,7 +150,7 @@ EOF if [ "${LB_VOLATILE}" = "true" ] then case "${LB_MODE}" in - debian|ubuntu) + debian|ubuntu|kubuntu) echo "deb ${LB_PARENT_MIRROR_CHROOT_VOLATILE} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list if [ "${LB_SOURCE}" = "true" ] @@ -204,12 +204,20 @@ EOF for REPOSITORY in ${LB_ARCHIVES} do # ubuntu workaround to allow using live.debian.net - if [ "${LB_MODE}" = "ubuntu" ] && [ "${REPOSITORY}" = "live.debian.net" ] - then - _DISTRIBUTION="sid" - else - _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}" - fi + case "${LB_MODE}" in + ubuntu|kubuntu) + if [ "${REPOSITORY}" = "live.debian.net" ] + then + _DISTRIBUTION="sid" + else + _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}" + fi + ;; + + *) + _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}" + ;; + esac # Prefer archives from the config tree # over the global ones. @@ -660,7 +668,7 @@ EOF fi ;; - ubuntu) + ubuntu|kubuntu) echo "deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}-security ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list if [ "${LB_SOURCE}" = "true" ] @@ -674,7 +682,7 @@ EOF if [ "${LB_VOLATILE}" = "true" ] then case "${LB_MODE}" in - debian|ubuntu) + debian|ubuntu|kubuntu) echo "deb ${LB_PARENT_MIRROR_BINARY_VOLATILE} ${LB_PARENT_DISTRIBUTION}-updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list if [ "${LB_SOURCE}" = "true" ] -- cgit v1.2.3