From 491cb278f3496ce135a15c2998fdd945b87b15c6 Mon Sep 17 00:00:00 2001 From: Jordan Galby <67924449+Jordan474@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:30:30 +0200 Subject: spack audit packages: Fix message (#45045) Fix message formatting of the "virtual dependency cannot have variants" error. --- lib/spack/spack/audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/audit.py b/lib/spack/spack/audit.py index 3154723e16..faef15393d 100644 --- a/lib/spack/spack/audit.py +++ b/lib/spack/spack/audit.py @@ -791,7 +791,7 @@ def _issues_in_depends_on_directive(pkgs, error_cls): 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) -- cgit v1.2.3-70-g09d2