diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-16 14:15:30 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:23 +0100 |
commit | c1bd2bed0dd7105db22bdae086e993ff9dfee5fc (patch) | |
tree | cd46400352167bec82b18024b54f4fdcf7138469 /functions | |
parent | 3bec92e921e8176698757ebbca09a62ce44a7f30 (diff) | |
download | vyos-live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.tar.gz vyos-live-build-c1bd2bed0dd7105db22bdae086e993ff9dfee5fc.zip |
Adding support for inclusion of the debian-backports repository.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/defaults.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh index 193d59b1e..01e7abace 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 |