summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index d8698d5d3..8b0fb9fd9 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -723,12 +723,20 @@ Set_defaults ()
esac
# Setting apt indices
- if echo ${LB_PACKAGE_LISTS} | grep -qs -E "(stripped|minimal)\b"
- then
- LB_APT_INDICES="${LB_APT_INDICES:-none}"
- else
- LB_APT_INDICES="${LB_APT_INDICES:-true}"
- fi
+ case "${LB_MODE}" in
+ progress)
+ LB_APT_INDICES="${LB_APT_INDICES:-none}"
+ ;;
+
+ *)
+ if echo ${LB_PACKAGE_LISTS} | grep -qs -E "(stripped|minimal)\b"
+ then
+ LB_APT_INDICES="${LB_APT_INDICES:-none}"
+ else
+ LB_APT_INDICES="${LB_APT_INDICES:-true}"
+ fi
+ ;;
+ esac
# Setting bootloader
if [ -z "${LB_BOOTLOADER}" ]