summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_sources
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-16 14:15:30 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:23 +0100
commitc1bd2bed0dd7105db22bdae086e993ff9dfee5fc (patch)
treecd46400352167bec82b18024b54f4fdcf7138469 /scripts/build/lb_chroot_sources
parent3bec92e921e8176698757ebbca09a62ce44a7f30 (diff)
downloadvyos-live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.tar.gz
vyos-live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.zip
Adding support for inclusion of the debian-backports repository.
Diffstat (limited to 'scripts/build/lb_chroot_sources')
-rwxr-xr-xscripts/build/lb_chroot_sources34
1 files changed, 34 insertions, 0 deletions
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