Initially select all apps for install in interactive mode

This commit is contained in:
Bob Mottram 2016-10-17 12:40:53 +01:00
parent 94948257b1
commit 5161fee8f6
3 changed files with 15 additions and 1 deletions

View File

@ -181,6 +181,10 @@ fi
detect_installable_apps
if [[ $1 == "all"* ]]; then
choose_all_installable_apps
fi
# if no applications were found
if [[ ${#APPS_AVAILABLE[@]} == 0 ]]; then
exit 1

View File

@ -316,6 +316,16 @@ function detect_installable_apps {
done
}
function choose_all_installable_apps {
# selects all of the apps
app_index=0
for a in "${APPS_AVAILABLE[@]}"
do
APPS_CHOSEN[$app_index]="1"
app_index=$[app_index+1]
done
}
# creates the APPS_AVAILABLE and APPS_CHOSEN arrays based on
# the given variant name
function choose_apps_for_variant {

View File

@ -535,7 +535,7 @@ function setup_apps {
upgrade_apps
if [[ $is_interactive == "menuconfig"* ]]; then
${PROJECT_NAME}-addremove
${PROJECT_NAME}-addremove all
fi
if [[ $is_interactive == "noninteractive" || $is_interactive == "headless" ]]; then