diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-11-04 18:15:21 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-11-17 10:04:13 -0800 |
commit | 5c5a44988e5f7eebe84150a41776e772cb2941a6 (patch) | |
tree | bbcc63870992d1a5a0a7f71a8f339ccad7aefb1c /lib/spack | |
parent | 1b0338befbce898d6ec4f0f125fb52b396d8a663 (diff) | |
download | spack-5c5a44988e5f7eebe84150a41776e772cb2941a6.tar.gz spack-5c5a44988e5f7eebe84150a41776e772cb2941a6.tar.bz2 spack-5c5a44988e5f7eebe84150a41776e772cb2941a6.tar.xz spack-5c5a44988e5f7eebe84150a41776e772cb2941a6.zip |
Don't fail if MV variants have a tuple as default value
Diffstat (limited to 'lib/spack')
-rw-r--r-- | lib/spack/spack/solver/asp.py | 3 |
1 files changed, 2 insertions, 1 deletions
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( |