diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-06-22 20:33:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 11:33:44 -0700 |
commit | 02b92dbf1073fff435be9e5fb91d5188f25c8fc1 (patch) | |
tree | 11178d4e2c662527e7581163cc3ac44f1c7469d6 /lib | |
parent | 09a6f3533b7e1a0cbc8b6b65ce4cd36ef736e043 (diff) | |
download | spack-02b92dbf1073fff435be9e5fb91d5188f25c8fc1.tar.gz spack-02b92dbf1073fff435be9e5fb91d5188f25c8fc1.tar.bz2 spack-02b92dbf1073fff435be9e5fb91d5188f25c8fc1.tar.xz spack-02b92dbf1073fff435be9e5fb91d5188f25c8fc1.zip |
ASP-based solver: fix facts for default providers (#24380)
Facts used to compute weights for providers only need
the package name, since the other attributes are computed
as part of the solve.
Diffstat (limited to 'lib')
-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 94cc35d8de..55573518de 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -764,7 +764,8 @@ class SpackSolverSetup(object): continue for i, provider in enumerate(providers): - func(vspec, provider, i + 10) + provider_name = spack.spec.Spec(provider).name + func(vspec, provider_name, i + 10) def provider_defaults(self): self.gen.h2("Default virtual providers") |