summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-02 02:38:26 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-02 02:38:26 +0100
commitf78001144b56993de751be78983b9d01a9d73dd7 (patch)
treeab9822dc597bd919e5e3444446e970437ea2c269
parent69dc8c21cb97f155183b273bdc49d5a71f25bcb8 (diff)
downloadvyos-live-build-f78001144b56993de751be78983b9d01a9d73dd7.tar.gz
vyos-live-build-f78001144b56993de751be78983b9d01a9d73dd7.zip
move and rename Common_config_files()
for better encapsulation, and for consistency with other config file handling functions in the new location. Gbp-Dch: Ignore
-rwxr-xr-xfunctions/conffile.sh5
-rwxr-xr-xfunctions/init.sh7
-rwxr-xr-xscripts/build/config4
3 files changed, 8 insertions, 8 deletions
diff --git a/functions/conffile.sh b/functions/conffile.sh
index bd766c2bd..09be0bcc6 100755
--- a/functions/conffile.sh
+++ b/functions/conffile.sh
@@ -9,6 +9,11 @@
## under certain conditions; see COPYING for details.
+Common_conffiles ()
+{
+ echo "config/all config/common config/bootstrap config/chroot config/binary config/source"
+}
+
Get_conffiles ()
{
local FILES
diff --git a/functions/init.sh b/functions/init.sh
index cc70e91fa..d39bf1b5a 100755
--- a/functions/init.sh
+++ b/functions/init.sh
@@ -9,11 +9,6 @@
## under certain conditions; see COPYING for details.
-Common_config_files ()
-{
- echo "config/all config/common config/bootstrap config/chroot config/binary config/source"
-}
-
Auto_build_config ()
{
# Automatically build config
@@ -27,7 +22,7 @@ Init_config_data ()
{
Arguments "${@}"
- Read_conffiles $(Common_config_files)
+ Read_conffiles $(Common_conffiles)
Prepare_config
# Apt v2.0.1 introduced color support, but it needs to be explicitly enabled.
diff --git a/scripts/build/config b/scripts/build/config
index 318a2cc8c..dc79d08f9 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -217,7 +217,7 @@ Local_arguments ()
fi
# Dump conffile contents
- Print_conffiles $(Common_config_files)
+ Print_conffiles $(Common_conffiles)
# Dump contents of directories that contain text files
local DIRECTORY
@@ -939,7 +939,7 @@ then
fi
# Reading existing saved configuration
-Read_conffiles $(Common_config_files)
+Read_conffiles $(Common_conffiles)
# Processing arguments again to overwrite just-read previously saved settings as necessary
Local_arguments "${@}"