summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2015-01-07 21:42:39 +0000
committerRaphaƫl Hertzog <hertzog@debian.org>2020-03-09 10:38:09 +0000
commit7624527d7709d8cceb6e2507903e413ffb7dabc0 (patch)
tree838b17a5a434cd20e9e21473a4a6ca07ca0eddcc /functions
parent8008b57fc2c83ab59c03ce7dbdae31a5f5f5d8d0 (diff)
downloadvyos-live-build-7624527d7709d8cceb6e2507903e413ffb7dabc0.tar.gz
vyos-live-build-7624527d7709d8cceb6e2507903e413ffb7dabc0.zip
defaults: ensure global caching param overrides specific caching params if disabled
Closes: #952923
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index fe35ce879..d254b079a 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -217,9 +217,16 @@ Set_defaults ()
# Setting cache option
LB_CACHE="${LB_CACHE:-true}"
- LB_CACHE_INDICES="${LB_CACHE_INDICES:-false}"
- LB_CACHE_PACKAGES="${LB_CACHE_PACKAGES:-true}"
- LB_CACHE_STAGES="${LB_CACHE_STAGES:-bootstrap}"
+ if [ "${LB_CACHE}" = "false" ]
+ then
+ LB_CACHE_INDICES="false"
+ LB_CACHE_PACKAGES="false"
+ LB_CACHE_STAGES="bootstrap" #bootstrap caching currently required for process to work
+ else
+ LB_CACHE_INDICES="${LB_CACHE_INDICES:-false}"
+ LB_CACHE_PACKAGES="${LB_CACHE_PACKAGES:-true}"
+ LB_CACHE_STAGES="${LB_CACHE_STAGES:-bootstrap}"
+ fi
# Setting debconf frontend
LB_DEBCONF_FRONTEND="${LB_DEBCONF_FRONTEND:-noninteractive}"