From ee7025755a474249b18d879b6fcd65d16774da7d Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 22 Aug 2024 22:06:21 -0500 Subject: [PATCH] RPackage: fix assert --- lib/spack/spack/build_systems/r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/build_systems/r.py b/lib/spack/spack/build_systems/r.py index e626fd9f112..48f8a66fa13 100644 --- a/lib/spack/spack/build_systems/r.py +++ b/lib/spack/spack/build_systems/r.py @@ -65,7 +65,7 @@ def install(self, pkg, spec, prefix): p = re.search(r"^[\w_-]+", r_dep) # first word, incl. underscore or dash v = re.search("(?<=[(]).*(?=[)])", r_dep) # everything between parentheses # require valid package - assert(p, f"Unable to find package name in {r_dep}") + assert p, f"Unable to find package name in {r_dep}" r_spec = f"r-{p[0].strip().lower()}" if p[0].lower() != "r" else "r" # allow minimum or pinned versions if v: