summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-10-21 22:44:41 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-10-21 22:44:41 +0200
commit715e029361207f28b2834d4f1c1b38de5802405c (patch)
tree88a413d3accf7b4a9df0741a937592ff705b1904
parentfd2b72fd0fb0ea1ac86c6f0eef9e0d132fb95f06 (diff)
downloadspack-715e029361207f28b2834d4f1c1b38de5802405c.tar.gz
spack-715e029361207f28b2834d4f1c1b38de5802405c.tar.bz2
spack-715e029361207f28b2834d4f1c1b38de5802405c.tar.xz
spack-715e029361207f28b2834d4f1c1b38de5802405c.zip
spack info : added phases
-rw-r--r--lib/spack/spack/cmd/info.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py
index 2fa3a07525..0171d28fde 100644
--- a/lib/spack/spack/cmd/info.py
+++ b/lib/spack/spack/cmd/info.py
@@ -84,6 +84,13 @@ def print_text_info(pkg):
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'):
print
print "%s Dependencies:" % deptype.capitalize()
@@ -94,7 +101,7 @@ def print_text_info(pkg):
print " None"
print
- print "Virtual packages: "
+ print "Virtual Packages: "
if pkg.provided:
for spec, when in pkg.provided.items():
print " %s provides %s" % (when, spec)