config: rename Set_config_defaults() to Prepare_config()

it mostly applies defaults where a value does not exist, but does more in
some cases. the new name better reflects its usage and functionality.

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-28 05:42:34 +00:00 committed by Raphaël Hertzog
parent 7de8a0faa7
commit 5fb790e43e
3 changed files with 4 additions and 3 deletions

View File

@ -69,7 +69,8 @@ New_configuration ()
export LIVE_IMAGE_TYPE export LIVE_IMAGE_TYPE
} }
Set_config_defaults () # Prepare config for use, filling in defaults where no value provided for instance
Prepare_config ()
{ {
# FIXME # FIXME
New_configuration New_configuration

View File

@ -28,7 +28,7 @@ Init_config_data ()
Arguments "${@}" Arguments "${@}"
Read_conffiles $(Common_config_files) Read_conffiles $(Common_config_files)
Set_config_defaults Prepare_config
} }
# "Auto" script redirection. # "Auto" script redirection.

View File

@ -937,7 +937,7 @@ then
fi fi
# Setting and validating config # Setting and validating config
Set_config_defaults Prepare_config
Validate_config Validate_config
# Creating or updating saved config # Creating or updating saved config