mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-10 23:50:48 +02:00
Merge branch '369-build-system-bug-if-systems-or-used_overlays-is-not-specified-in-the-config-file' into 'master'
Resolve "build-system: bug if systems or used_overlays is not specified in the config file" Closes #369 See merge request Pmodules/src!382
This commit is contained in:
@@ -821,15 +821,19 @@ pbuild::install_shared_libs() {
|
||||
#
|
||||
|
||||
declare -n ModuleConfig
|
||||
declare -a Systems
|
||||
declare -a UseOverlays
|
||||
declare -a Systems=()
|
||||
declare -a UseOverlays=()
|
||||
pbuild.build_module_yaml(){
|
||||
local -- module_name="$1"
|
||||
local -- module_version="$2"
|
||||
ModuleConfig="$3"
|
||||
local -- module_relstage="${ModuleConfig['relstage']}"
|
||||
readarray -t Systems <<< "${ModuleConfig['systems']}"
|
||||
readarray -t UseOverlays <<< "${ModuleConfig['use_overlays']}"
|
||||
if [[ -n "${ModuleConfig['systems']}" ]]; then
|
||||
readarray -t Systems <<< "${ModuleConfig['systems']}"
|
||||
fi
|
||||
if [[ -n "${ModuleConfig['use_overlays']}" ]]; then
|
||||
readarray -t UseOverlays <<< "${ModuleConfig['use_overlays']}"
|
||||
fi
|
||||
shift 3
|
||||
_build_module "${module_name}" "${module_version}" "${module_relstage}" "$@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user