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.
This commit is contained in:
Massimiliano Culpo 2021-06-22 20:33:44 +02:00 committed by GitHub
parent 09a6f3533b
commit 02b92dbf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -764,7 +764,8 @@ def virtual_preferences(self, pkg_name, func):
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")