diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-16 14:15:30 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:23 +0100 |
commit | c1bd2bed0dd7105db22bdae086e993ff9dfee5fc (patch) | |
tree | cd46400352167bec82b18024b54f4fdcf7138469 /scripts/build/lb_chroot_sources | |
parent | 3bec92e921e8176698757ebbca09a62ce44a7f30 (diff) | |
download | live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.zip live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.tar.gz |
Adding support for inclusion of the debian-backports repository.
Diffstat (limited to 'scripts/build/lb_chroot_sources')
-rwxr-xr-x | scripts/build/lb_chroot_sources | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources index 6c95967..d5dfeea 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 |