summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-18 22:24:22 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-18 22:24:22 -0800
commitb7e926eef6a248ec6f67cf30bdb2ce7dea09b8a2 (patch)
tree50e23bb0fc8e94913ff78fd873575e781c71901f /lib
parentce8bd2094403ca5844f164e65b22ad4cfdab4a9a (diff)
downloadspack-b7e926eef6a248ec6f67cf30bdb2ce7dea09b8a2.tar.gz
spack-b7e926eef6a248ec6f67cf30bdb2ce7dea09b8a2.tar.bz2
spack-b7e926eef6a248ec6f67cf30bdb2ce7dea09b8a2.tar.xz
spack-b7e926eef6a248ec6f67cf30bdb2ce7dea09b8a2.zip
minor formatting.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/extensions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/extensions.py b/lib/spack/spack/cmd/extensions.py
index c2cf288877..2ce6f406ca 100644
--- a/lib/spack/spack/cmd/extensions.py
+++ b/lib/spack/spack/cmd/extensions.py
@@ -54,7 +54,9 @@ def extensions(parser, args):
if not args.spec:
tty.die("extensions requires a package spec.")
+ #
# Checks
+ #
spec = spack.cmd.parse_specs(args.spec)
if len(spec) > 1:
tty.die("Can only list extensions for one package.")
@@ -70,7 +72,9 @@ def extensions(parser, args):
if not args.mode:
args.mode = 'short'
+ #
# List package names of extensions
+ #
extensions = spack.db.extensions_for(spec)
if not extensions:
tty.msg("%s has no extensions." % spec.cshort_spec)
@@ -79,7 +83,9 @@ def extensions(parser, args):
tty.msg("%d extensions:" % len(extensions))
colify(ext.name for ext in extensions)
+ #
# List specs of installed extensions.
+ #
installed = [s.spec for s in spack.installed_db.installed_extensions_for(spec)]
print
if not installed:
@@ -88,7 +94,9 @@ def extensions(parser, args):
tty.msg("%d installed:" % len(installed))
spack.cmd.find.display_specs(installed, mode=args.mode)
+ #
# List specs of activated extensions.
+ #
activated = spack.install_layout.extension_map(spec)
print
if not activated: