From cc16faa62cfa846ffdc955df801df52e30003d92 Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 28 Nov 2024 14:45:18 +0100 Subject: [PATCH] build-system: always update module config files if requested (cherry picked from commit d00b776e689814cc696798715d1fb1f0a1ad1bda) Co-authored-by: Achim Gsell --- Pmodules/libpbuild.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 484f4c7..756032f 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -1315,7 +1315,9 @@ _build_module() { local -r yaml_config_file="${modulefile_dir}/.config-${module_version}" local -- status_yaml_config_file='unchanged' - if [[ -r "${yaml_config_file}" ]]; then + if [[ "${opt_update_modulefiles}" == 'yes' ]]; then + status_yaml_config_file='update' + elif [[ -r "${yaml_config_file}" ]]; then while read -r key value; do local -n ref="${key:0:-1}" ref="${value}" @@ -1560,7 +1562,6 @@ _build_module() { ${with_modules:+with ${with_modules[@]}} \ "building ..." - init_module_environment bm::load_overlays bm::load_build_dependencies BUILD_ROOT="${PMODULES_TMPDIR}/${module_name}-${module_version}"