From 40d32890d078d1ce70fa2f44777903d8b50ad9ae Mon Sep 17 00:00:00 2001 From: Yang Zongze Date: Sat, 30 Jan 2021 03:05:36 +0800 Subject: [PATCH] Print groups properly for spack find -d (#20028) --- lib/spack/spack/cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 format_list(specs): 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))