Move description to top of spack info
(#4475)
This commit is contained in:
parent
36b8ea2f92
commit
c67f647785
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user