summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-05-15 20:56:26 +0200
committerDaniel Baumann <daniel@debian.org>2011-05-15 20:56:26 +0200
commitebc3788bf2447d7a7a0c6bdb39634f044037eaa9 (patch)
tree642f9856aa86b9c043c5a7edb949c920ba972b49 /scripts
parenta657b49ea2ba8f848d8d777ea0ba1944da7aa734 (diff)
downloadvyos-live-build-ebc3788bf2447d7a7a0c6bdb39634f044037eaa9.tar.gz
vyos-live-build-ebc3788bf2447d7a7a0c6bdb39634f044037eaa9.zip
Avoid wrong security mirrors when building for artax-backports.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_chroot_sources36
1 files changed, 26 insertions, 10 deletions
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