From c1bd2bed0dd7105db22bdae086e993ff9dfee5fc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 16 Sep 2010 14:15:30 +0200 Subject: Adding support for inclusion of the debian-backports repository. --- scripts/build/lb_chroot_sources | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'scripts/build/lb_chroot_sources') diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources index 6c95967d0..d5dfeea19 100755 --- a/scripts/build/lb_chroot_sources +++ b/scripts/build/lb_chroot_sources @@ -110,6 +110,23 @@ EOF esac fi + if [ "${LB_BACKPORTS}" = "true" ] + then + case "${LB_MODE}" in + debian|debian-release) + if [ "${LB_DISTRIBUTION}" != "sid" ] && [ "${LB_DISTRIBUTION}" != "unstable" ] + then + echo "deb ${LB_MIRROR_CHROOT_BACKPORTS} ${LB_DISTRIBUTION}-backports ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list + + if [ "${LB_SOURCE}" = "true" ] + then + echo "deb-src ${LB_MIRROR_CHROOT_BACKPORTS} ${LB_DISTRIBUTION}-backports ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list + fi + fi + ;; + esac + fi + # Check local sources.list if Find_files config/chroot_sources/*.chroot then @@ -507,6 +524,23 @@ EOF esac fi + if [ "${LB_BACKPORTS}" = "true" ] + then + case "${LB_MODE}" in + debian|debian-release) + if [ "${LB_DISTRIBUTION}" != "sid" ] && [ "${LB_DISTRIBUTION}" != "unstable" ] + then + echo "deb ${LB_MIRROR_BINARY_BACKPORTS} ${LB_DISTRIBUTION}-backports ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list + + if [ "${LB_SOURCE}" = "true" ] + then + echo "deb-src ${LB_MIRROR_BINARY_BACKPORTS} ${LB_DISTRIBUTION}-backports ${LB_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list + fi + fi + ;; + esac + fi + # Configure third-party repositories if [ -n "${LB_REPOSITORIES}" ] then -- cgit v1.2.3