diff options
author | George Todd Gamblin <gamblin2@llnl.gov> | 2014-08-04 07:51:12 -0700 |
---|---|---|
committer | George Todd Gamblin <gamblin2@llnl.gov> | 2014-08-04 07:51:12 -0700 |
commit | d13d32040c6f47f8076aa894754e13b04b552597 (patch) | |
tree | c2429a13d13daf6d3b5c34f807c613740792c1a6 /lib | |
parent | d0b179962b87470edbaf4e05e41e748bebe27a3d (diff) | |
parent | d7a3c7e555bfd93fbf93ec55608d7fc6aa8052f8 (diff) | |
download | spack-d13d32040c6f47f8076aa894754e13b04b552597.tar.gz spack-d13d32040c6f47f8076aa894754e13b04b552597.tar.bz2 spack-d13d32040c6f47f8076aa894754e13b04b552597.tar.xz spack-d13d32040c6f47f8076aa894754e13b04b552597.zip |
Merge pull request #20 in SCALE/spack from openss to develop
# By Matthew LeGendre (2) and Todd Gamblin (1)
# Via Todd Gamblin
* commit 'd7a3c7e555bfd93fbf93ec55608d7fc6aa8052f8':
Fix up Matt's openss packages.
Add sqlite to spack
Add libmonitor to spack. Still needs svn support for checkout
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/info.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py index 648dbf905a..bb147b30f5 100644 --- a/lib/spack/spack/cmd/info.py +++ b/lib/spack/spack/cmd/info.py @@ -37,15 +37,17 @@ def info(parser, args): package = spack.db.get(args.name) print "Package: ", package.name print "Homepage: ", package.homepage - print "Download: ", package.url print print "Safe versions: " - if package.versions: - colify(reversed(sorted(package.versions)), indent=4) + if not package.versions: + print("None.") else: - print "None. Use spack versions %s to get a list of downloadable versions." % package.name + maxlen = max(len(str(v)) for v in package.versions) + fmt = "%%-%ss" % maxlen + for v in reversed(sorted(package.versions)): + print " " + (fmt % v) + " " + package.url_for_version(v) print print "Dependencies:" |