summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-16 14:15:30 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:23 +0100
commitc1bd2bed0dd7105db22bdae086e993ff9dfee5fc (patch)
treecd46400352167bec82b18024b54f4fdcf7138469 /functions
parent3bec92e921e8176698757ebbca09a62ce44a7f30 (diff)
downloadlive-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.zip
live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.tar.gz
Adding support for inclusion of the debian-backports repository.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 193d59b..01e7aba 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -359,6 +359,22 @@ Set_defaults ()
LB_MIRROR_CHROOT_VOLATILE="${LB_MIRROR_CHROOT_VOLATILE:-none}"
fi
+ # Setting backports mirror to fetch packages from
+ if [ -z "${LB_MIRROR_CHROOT_BACKPORTS}" ]
+ then
+ case "${LB_MODE}" in
+ debian|debian-release)
+ case "${LB_DISTRIBUTION}" in
+ lenny|squeeze)
+ LB_MIRROR_CHROOT_BACKPORTS="http://backports.debian.org/debian-backports/"
+ ;;
+ esac
+ ;;
+ esac
+
+ LB_MIRROR_CHROOT_BACKPORTS="${LB_MIRROR_CHROOT_BACKPORTS:-none}"
+ fi
+
# Setting mirror which ends up in the image
if [ -z "${LB_MIRROR_BINARY}" ]
then
@@ -439,6 +455,22 @@ Set_defaults ()
LB_MIRROR_BINARY_VOLATILE="${LB_MIRROR_BINARY_VOLATILE:-none}"
fi
+ # Setting backports mirror which ends up in the image
+ if [ -z "${LB_MIRROR_BINARY_BACKPORTS}" ]
+ then
+ case "${LB_MODE}" in
+ debian|debian-release)
+ case "${LB_DISTRIBUTION}" in
+ lenny|squeeze)
+ LB_MIRROR_BINARY_BACKPORTS="http://backports.debian.org/debian-backports/"
+ ;;
+ esac
+ ;;
+ esac
+
+ LB_MIRROR_BINARY_BACKPORTS="${LB_MIRROR_BINARY_BACKPORTS:-none}"
+ fi
+
LB_MIRROR_DEBIAN_INSTALLER="${LB_MIRROR_DEBIAN_INSTALLER:-${LB_MIRROR_BOOTSTRAP}}"
# Setting archive areas value