Skip to content
Snippets Groups Projects
Commit 715e0293 authored by Massimiliano Culpo's avatar Massimiliano Culpo
Browse files

spack info : added phases

parent fd2b72fd
Branches
Tags
No related merge requests found
...@@ -84,6 +84,13 @@ def print_text_info(pkg): ...@@ -84,6 +84,13 @@ def print_text_info(pkg):
print " " + fmt % (name, default, desc) print " " + fmt % (name, default, desc)
print
print "Installation Phases:"
phase_str = ''
for phase in pkg.phases:
phase_str += " {0}".format(phase)
print phase_str
for deptype in ('build', 'link', 'run'): for deptype in ('build', 'link', 'run'):
print print
print "%s Dependencies:" % deptype.capitalize() print "%s Dependencies:" % deptype.capitalize()
...@@ -94,7 +101,7 @@ def print_text_info(pkg): ...@@ -94,7 +101,7 @@ def print_text_info(pkg):
print " None" print " None"
print print
print "Virtual packages: " print "Virtual Packages: "
if pkg.provided: if pkg.provided:
for spec, when in pkg.provided.items(): for spec, when in pkg.provided.items():
print " %s provides %s" % (when, spec) print " %s provides %s" % (when, spec)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment