summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2023-05-15 00:08:50 -0700
committerGitHub <noreply@github.com>2023-05-15 09:08:50 +0200
commitcf9dc3fc81389bf695d6569a6c0dd4389299210a (patch)
treedf4faaa8eb6976cef13d39589ab41bf4868d5a73 /lib
parentd265dd248707aff73fae29b67dcc7ad2870a9338 (diff)
downloadspack-cf9dc3fc81389bf695d6569a6c0dd4389299210a.tar.gz
spack-cf9dc3fc81389bf695d6569a6c0dd4389299210a.tar.bz2
spack-cf9dc3fc81389bf695d6569a6c0dd4389299210a.tar.xz
spack-cf9dc3fc81389bf695d6569a6c0dd4389299210a.zip
`spack find`: get rid of @= in arch/compiler headers (#37672)
The @= in `spack find` output adds a bit of noise. Remove it as we did for `spack spec` and `spack concretize`. This modifies display_specs so it actually covers other places we use that routine, as well, e.g., `spack buildcache list`. before: ``` -- linux-ubuntu20.04-aarch64 / gcc@=11.1.0 ----------------------- ofdlcpi libpressio@0.88.0 ``` after: ``` -- linux-ubuntu20.04-aarch64 / gcc@11.1.0 ----------------------- ofdlcpi libpressio@0.88.0 ```
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/__init__.py b/lib/spack/spack/cmd/__init__.py
index 9ca3ae4c6d..f07173d9fc 100644
--- a/lib/spack/spack/cmd/__init__.py
+++ b/lib/spack/spack/cmd/__init__.py
@@ -347,7 +347,7 @@ def iter_groups(specs, indent, all_headers):
spack.spec.architecture_color,
architecture if architecture else "no arch",
spack.spec.compiler_color,
- compiler if compiler else "no compiler",
+ f"{compiler.name}@{compiler.version}" if compiler else "no compiler",
)
# Sometimes we want to display specs that are not yet concretized.