summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_sources
diff options
context:
space:
mode:
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 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