From ebc3788bf2447d7a7a0c6bdb39634f044037eaa9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 15 May 2011 20:56:26 +0200 Subject: Avoid wrong security mirrors when building for artax-backports. --- scripts/build/lb_chroot_sources | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'scripts/build/lb_chroot_sources') diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources index b0955e9d2..f2971cf0f 100755 --- a/scripts/build/lb_chroot_sources +++ b/scripts/build/lb_chroot_sources @@ -95,12 +95,20 @@ EOF if [ "${LB_MODE}" = progress ] then - echo "deb ${LB_MIRROR_CHROOT_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + case "${LB_DISTRIBUTION}" in + *-backports) - if [ "${LB_SOURCE}" = "true" ] - then - echo "deb-src ${LB_MIRROR_CHROOT_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list - fi + ;; + + *) + echo "deb ${LB_MIRROR_CHROOT_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + + if [ "${LB_SOURCE}" = "true" ] + then + echo "deb-src ${LB_MIRROR_CHROOT_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + fi + ;; + esac else if [ "${LB_DERIVATIVE}" = "true" ] then @@ -606,12 +614,20 @@ EOF if [ "${LB_MODE}" = progress ] then - echo "deb ${LB_MIRROR_BINARY_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + case "${LB_DISTRIBUTION}" in + *-backports) - if [ "${LB_SOURCE}" = "true" ] - then - echo "deb-src ${LB_MIRROR_BINARY_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list - fi + ;; + + *) + echo "deb ${LB_MIRROR_BINARY_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + + if [ "${LB_SOURCE}" = "true" ] + then + echo "deb-src ${LB_MIRROR_BINARY_SECURITY} ${LB_DISTRIBUTION}-security ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list.d/${LB_MODE}.list + fi + ;; + esac else if [ "${LB_DERIVATIVE}" = "true" ] then -- cgit v1.2.3