Move description to top of spack info (#4475)

This commit is contained in:
Todd Gamblin 2017-06-09 21:02:16 -07:00 committed by GitHub
parent 36b8ea2f92
commit c67f647785

View File

@ -131,6 +131,14 @@ def print_text_info(pkg):
header = "{0}: ".format(pkg.build_system_class)
print(header, pkg.name)
print()
print("Description:")
if pkg.__doc__:
print(pkg.format_doc(indent=4))
else:
print(" None")
whitespaces = ''.join([' '] * (len(header) - len("Homepage: ")))
print("Homepage:", whitespaces, pkg.homepage)
@ -183,13 +191,6 @@ def print_text_info(pkg):
else:
print(" None")
print()
print("Description:")
if pkg.__doc__:
print(pkg.format_doc(indent=4))
else:
print(" None")
def info(parser, args):
pkg = spack.repo.get(args.name)