summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-05-15 20:53:24 +0200
committerDaniel Baumann <daniel@debian.org>2011-05-15 20:53:24 +0200
commita657b49ea2ba8f848d8d777ea0ba1944da7aa734 (patch)
tree46f8b6c54268cba9855e8209103f7d16072efab5 /scripts
parent4d8ae158c2963fe6bd79f2b4e143223218c49ac2 (diff)
downloadvyos-live-build-a657b49ea2ba8f848d8d777ea0ba1944da7aa734.tar.gz
vyos-live-build-a657b49ea2ba8f848d8d777ea0ba1944da7aa734.zip
Don't add security repository for wheezy.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_chroot_sources42
1 files changed, 26 insertions, 16 deletions
diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources
index a864361a3..b0955e9d2 100755
--- a/scripts/build/lb_chroot_sources
+++ b/scripts/build/lb_chroot_sources
@@ -78,15 +78,20 @@ EOF
then
case "${LB_MODE}" in
debian|progress)
- if [ "${LB_PARENT_DISTRIBUTION}" != "sid" ]
- then
- echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ case "${LB_PARENT_DISTRIBUTION}" in
+ sid|wheezy)
- if [ "${LB_SOURCE}" = "true" ]
- then
- echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
- fi
- fi
+ ;;
+
+ *)
+ echo "deb ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+
+ if [ "${LB_SOURCE}" = "true" ]
+ then
+ echo "deb-src ${LB_PARENT_MIRROR_CHROOT_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ fi
+ ;;
+ esac
if [ "${LB_MODE}" = progress ]
then
@@ -584,15 +589,20 @@ EOF
then
case "${LB_MODE}" in
debian|progress)
- if [ "${LB_PARENT_DISTRIBUTION}" != "sid" ]
- then
- echo "deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ case "${LB_PARENT_DISTRIBUTION}" in
+ sid|wheezy)
- if [ "${LB_SOURCE}" = "true" ]
- then
- echo "deb-src ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
- fi
- fi
+ ;;
+
+ *)
+ echo "deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+
+ if [ "${LB_SOURCE}" = "true" ]
+ then
+ echo "deb-src ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_PARENT_DISTRIBUTION}/updates ${LB_PARENT_ARCHIVE_AREAS}" >> chroot/etc/apt/sources.list
+ fi
+ ;;
+ esac
if [ "${LB_MODE}" = progress ]
then