Print groups properly for spack find -d (#20028)

This commit is contained in:
Yang Zongze 2021-01-30 03:05:36 +08:00 committed by Tamara Dahlgren
parent 18022050f2
commit 40d32890d0

View file

@ -435,7 +435,7 @@ def format_list(specs):
out = '' out = ''
if groups: if groups:
for specs in iter_groups(specs, indent, all_headers): for specs in iter_groups(specs, indent, all_headers):
out += format_list(specs) output.write(format_list(specs))
else: else:
out = format_list(sorted(specs)) out = format_list(sorted(specs))