diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2024-06-30 18:49:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 17:49:01 -0600 |
commit | a9cb80d792b964fabc877084552e237f501c7525 (patch) | |
tree | 7b538bbeb65de094199b9c35d2df20d1600c8c81 | |
parent | dae6fe711c0fee23782dc2ab3bd85039bacce660 (diff) | |
download | spack-a9cb80d792b964fabc877084552e237f501c7525.tar.gz spack-a9cb80d792b964fabc877084552e237f501c7525.tar.bz2 spack-a9cb80d792b964fabc877084552e237f501c7525.tar.xz spack-a9cb80d792b964fabc877084552e237f501c7525.zip |
xl: avoid matching "_r" in tempfile.TemporaryDirectory during audit (#44831)
-rw-r--r-- | var/spack/repos/builtin/packages/xl/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/xl/package.py b/var/spack/repos/builtin/packages/xl/package.py index 479d31b548..379c35810b 100644 --- a/var/spack/repos/builtin/packages/xl/package.py +++ b/var/spack/repos/builtin/packages/xl/package.py @@ -30,8 +30,8 @@ class Xl(Package, CompilerPackage): @classmethod def determine_variants(cls, exes, version_str): - _r_exes = [e for e in exes if "_r" in e] - _exes = [e for e in exes if "_r" not in e] + _r_exes = [e for e in exes if e.endswith("_r")] + _exes = [e for e in exes if not e.endswith("_r")] _r_compilers = cls.determine_compiler_paths(exes=_r_exes) if _r_exes else None _compilers = cls.determine_compiler_paths(exes=_exes) if _exes else None |