From 047d55d83b1df9af60c7c48058c34d85041b08e1 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 2 Sep 2024 18:23:51 +0200 Subject: [PATCH] build-system: bugfix: handle empty variants --- Pmodules/modbuild.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 16a23d2..7121b44 100644 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -818,6 +818,11 @@ build_modules_yaml_v1(){ local -- type_of_key='' type_of_key=$( ${yq} -e ".variants | type" 2>/dev/null <<<"${yaml_input}") + if [[ "${type_of_key}" == '!!null' ]]; then + result='' + n=0 + return 0 + fi if [[ "${type_of_key}" != '!!seq' ]]; then die_invalid_variants_block "${name}" "${version}" \ "${type_of_key}"