spack audit packages: Fix message (#45045)
Fix message formatting of the "virtual dependency cannot have variants" error.
This commit is contained in:
parent
ed1ebefd8f
commit
491cb278f3
@ -791,7 +791,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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user