modbuild: handling of empty variant array fixed

an entry
  <name>/<version>:
without further information is legal and must be handled properly.
This commit is contained in:
2022-07-04 19:08:10 +02:00
parent cd1788704d
commit 22c30aced7
+1
View File
@@ -568,6 +568,7 @@ build_modules_yaml(){
for v in "${versions[@]}"; do
local -i n_variants
yaml_get_num_variants n_variants "${fname}" "${v}"
(( n_variants == 0 )) && (( n_variants = 1 ))
local -i i
local -a deps=()
local relstage