summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Zongze <yangzongze@gmail.com>2021-01-30 03:05:36 +0800
committerGitHub <noreply@github.com>2021-01-29 11:05:36 -0800
commitf8124369f9fbf7018b540da9c3258b87b354831d (patch)
treea45743a1268d48f3dcf8e73e9b616dd57e599929
parent0f82fa51517b70270c14309fbed86cf779477963 (diff)
downloadspack-f8124369f9fbf7018b540da9c3258b87b354831d.tar.gz
spack-f8124369f9fbf7018b540da9c3258b87b354831d.tar.bz2
spack-f8124369f9fbf7018b540da9c3258b87b354831d.tar.xz
spack-f8124369f9fbf7018b540da9c3258b87b354831d.zip
Print groups properly for spack find -d (#20028)
-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 5eb0acc8c5..4295ffe6a2 100644
--- a/lib/spack/spack/cmd/__init__.py
+++ b/lib/spack/spack/cmd/__init__.py
@@ -435,7 +435,7 @@ def display_specs(specs, args=None, **kwargs):
out = ''
if groups:
for specs in iter_groups(specs, indent, all_headers):
- out += format_list(specs)
+ output.write(format_list(specs))
else:
out = format_list(sorted(specs))