summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-08-24 22:59:46 +0200
committerDaniel Baumann <daniel@debian.org>2011-08-24 22:59:46 +0200
commitad518cce947edd72293450f8ea21fe66ee892244 (patch)
treee5a4b4c0e1585e6f297249c5d3ae5112e191dc4e /functions
parent3ceb68b7d4eb5b28269c0780a808c3725c5f5668 (diff)
downloadvyos-live-build-ad518cce947edd72293450f8ea21fe66ee892244.tar.gz
vyos-live-build-ad518cce947edd72293450f8ea21fe66ee892244.zip
Setting apt-source to false in progress mode.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index c87237ae7..ec283d49e 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -101,7 +101,15 @@ Set_defaults ()
LB_APT_SECURE="${LB_APT_SECURE:-true}"
# Setting apt source
- LB_APT_SOURCE="${LB_APT_SOURCE:-true}"
+ case "${LB_MODE}" in
+ progress)
+ LB_APT_SOURCE="${LB_APT_SOURCE:-false}"
+ ;;
+
+ *)
+ LB_APT_SOURCE="${LB_APT_SOURCE:-true}"
+ ;;
+ esac
# Setting bootstrap program
if [ -z "${LB_BOOTSTRAP}" ] || ( [ ! -x "$(which ${LB_BOOTSTRAP} 2>/dev/null)" ] && [ "${LB_BOOTSTRAP}" != "copy" ] )