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 Harmen Stoppels
parent 41f5f6eaab
commit ef2aa2f5f5

View file

@ -779,7 +779,7 @@ def check_virtual_with_variants(spec, msg):
return return
error = error_cls( error = error_cls(
f"{pkg_name}: {msg}", 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) errors.append(error)