From 07b95b39d9b84d278b01e2d043dffd64b67c0ca2 Mon Sep 17 00:00:00 2001 From: gsell Date: Mon, 3 Feb 2025 10:53:11 +0100 Subject: [PATCH] build-system (#382): bugfix in yml::get_group_deps() (cherry picked from commit ae00d9f8651914a908e59ca39e327b08ea634b2c) Co-authored-by: Achim Gsell --- Pmodules/modbuild.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index f9c98f4..d7ccb2f 100644 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -934,10 +934,12 @@ build_modules_yaml_v1(){ local keys=() yml::get_keys keys yaml_input ".${group,,}" for key in "${keys[@]}"; do - local version - local versions=() - yml::get_seq versions yaml_input ".${group,,}.${key}" || \ + local -- version + local -a versions=() + local -- value='' + yml::get_seq value yaml_input ".${group,,}.${key}" || \ yml::die_parsing "${yaml_input}" + readarray -t versions <<<"${value}" for version in "${versions[@]}"; do if [[ -v opt_with_dict[${key}/${version}] ]]; then with_modules+=( "${key}/${version}" )