spack audit packages: Fix message (#45045)
Fix message formatting of the "virtual dependency cannot have variants" error.
This commit is contained in:
parent
41f5f6eaab
commit
ef2aa2f5f5
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue