summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-03-21 20:36:50 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-21 20:36:50 +0100
commitf261b470f85d093ac9a9a16741901c4a47b9b87f (patch)
tree8783624b56f9177927f9dc1b343e503ea2fef7a8 /functions
parent18fc11bcad1d86fbf0917b6f2325e23f7fad397d (diff)
downloadvyos-live-build-f261b470f85d093ac9a9a16741901c4a47b9b87f.tar.gz
vyos-live-build-f261b470f85d093ac9a9a16741901c4a47b9b87f.zip
Disabling security and volatile repositories for unreleased distributions.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh20
1 files changed, 18 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 9c8955ec4..0f17e053b 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -773,10 +773,26 @@ Set_defaults ()
LB_TASKS="$(echo ${LB_TASKS} | sed -e 's| ||g')"
# Setting security updates option
- LB_SECURITY="${LB_SECURITY:-true}"
+ case "${LB_DISTRIBUTION}" in
+ wheezy|sid|baureo)
+ LB_SECURITY="${LB_SECURITY:-false}"
+ ;;
+
+ *)
+ LB_SECURITY="${LB_SECURITY:-true}"
+ ;;
+ esac
# Setting volatile updates option
- LB_VOLATILE="${LB_VOLATILE:-true}"
+ case "${LB_DISTRIBUTION}" in
+ wheezy|sid|baureo)
+ LB_VOLATILE="${LB_VOLATILE:-false}"
+ ;;
+
+ *)
+ LB_VOLATILE="${LB_VOLATILE:-true}"
+ ;;
+ esac
## config/binary