From 5c5a44988e5f7eebe84150a41776e772cb2941a6 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 4 Nov 2020 18:15:21 +0100 Subject: Don't fail if MV variants have a tuple as default value --- lib/spack/spack/solver/asp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 59f205b7c6..64e9f62e5d 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -861,7 +861,8 @@ class SpackSolverSetup(object): 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( -- cgit v1.2.3-70-g09d2