Updating debian-backports mirrors for wheezy.
authorDaniel Baumann <daniel@debian.org>
Thu, 25 Apr 2013 14:43:58 +0000 (16:43 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 25 Apr 2013 14:43:58 +0000 (16:43 +0200)
functions/defaults.sh

index 9a958fa..75b7752 100755 (executable)
@@ -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}}"
                        ;;