Don't fail if MV variants have a tuple as default value

This commit is contained in:
Massimiliano Culpo 2020-11-04 18:15:21 +01:00 committed by Todd Gamblin
parent 1b0338befb
commit 5c5a44988e

View File

@ -861,7 +861,8 @@ def pkg_rules(self, pkg, tests):
pkg.name, name, variant.default)
)
else:
defaults = variant.default.split(',')
spec_variant = variant.make_default()
defaults = spec_variant.value
for val in sorted(defaults):
self.gen.fact(
fn.variant_default_value_from_package_py(