summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-04-25 16:43:58 +0200
committerDaniel Baumann <daniel@debian.org>2013-04-25 16:43:58 +0200
commitac6d1c319dbecb0f8222e06613935a9c3bfa9329 (patch)
tree3b27b40155485e53e6ab035a3832f388ac1ee3d6
parentb19795614fdcf8cd38ddda9cf738407d9dda3c4b (diff)
downloadvyos-live-build-ac6d1c319dbecb0f8222e06613935a9c3bfa9329.tar.gz
vyos-live-build-ac6d1c319dbecb0f8222e06613935a9c3bfa9329.zip
Updating debian-backports mirrors for wheezy.
-rwxr-xr-xfunctions/defaults.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 9a958fa31..75b77523d 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -445,7 +445,16 @@ Set_defaults ()
# Setting backports mirror to fetch packages from
case "${LB_MODE}" in
debian)
- LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-http://backports.debian.org/debian-backports/}"
+ case "${LB_DISTRIBUTION}" in
+ squeeze)
+ LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-http://backports.debian.org/debian-backports/}"
+ ;;
+
+ *)
+ LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-${LB_MIRROR_CHROOT}}"
+ ;;
+ esac
+
LB_PARENT_MIRROR_CHROOT_BACKPORTS="${LB_PARENT_MIRROR_CHROOT_BACKPORTS:-${LB_MIRROR_CHROOT_BACKPORTS}}"
;;
@@ -557,7 +566,16 @@ Set_defaults ()
# Setting backports mirror which ends up in the image
case "${LB_MODE}" in
debian)
- LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-http://http.debian.net/debian-backports/}"
+ case "${LB_DISTRIBUTIO}" in
+ squeeze)
+ LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-http://http.debian.net/debian-backports/}"
+ ;;
+
+ *)
+ LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-${LB_MIRROR_BINARY}}"
+ ;;
+ esac
+
LB_PARENT_MIRROR_BINARY_BACKPORTS="${LB_PARENT_MIRROR_BINARY_BACKPORTS:-${LB_MIRROR_BINARY_BACKPORTS}}"
;;