From ef2aa2f5f5a0c181c40cf0abeebfccb3a5073428 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: [PATCH] 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(-) diff --git a/lib/spack/spack/audit.py b/lib/spack/spack/audit.py index 50eb8b8ec5..ac53868564 100644 --- a/lib/spack/spack/audit.py +++ b/lib/spack/spack/audit.py @@ -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)