summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Zongze <yangzongze@gmail.com>2021-01-30 03:05:36 +0800
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:45 -0800
commit40d32890d078d1ce70fa2f44777903d8b50ad9ae (patch)
tree51fadb1be13aad995e620d803cc05e25bc25df93 /lib
parent18022050f21130cfcce1ad9d8ff17bca4ba3f7cc (diff)
downloadspack-40d32890d078d1ce70fa2f44777903d8b50ad9ae.tar.gz
spack-40d32890d078d1ce70fa2f44777903d8b50ad9ae.tar.bz2
spack-40d32890d078d1ce70fa2f44777903d8b50ad9ae.tar.xz
spack-40d32890d078d1ce70fa2f44777903d8b50ad9ae.zip
Print groups properly for spack find -d (#20028)
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 d48301f5de..130abea4cc 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))