spack audit packages: Fix message (#45045)

Fix message formatting of the "virtual dependency cannot have variants" error.
This commit is contained in:
Jordan Galby 2024-07-04 14:30:30 +02:00 committed by GitHub
parent ed1ebefd8f
commit 491cb278f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -791,7 +791,7 @@ def check_virtual_with_variants(spec, msg):
return
error = error_cls(
f"{pkg_name}: {msg}",
f"remove variants from '{spec}' in depends_on directive in {filename}",
[f"remove variants from '{spec}' in depends_on directive in {filename}"],
)
errors.append(error)