summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-11-10 16:47:56 -0600
committerGitHub <noreply@github.com>2019-11-10 16:47:56 -0600
commit60070759a0a5c9caec9f5b79775888f021e516e1 (patch)
treee7250161b8ea0bf9779f2d551707b7ad1af9b978 /lib
parent1ca91d728a9f4324d15793ad32a95054c5883ea0 (diff)
downloadspack-60070759a0a5c9caec9f5b79775888f021e516e1.tar.gz
spack-60070759a0a5c9caec9f5b79775888f021e516e1.tar.bz2
spack-60070759a0a5c9caec9f5b79775888f021e516e1.tar.xz
spack-60070759a0a5c9caec9f5b79775888f021e516e1.zip
Improve spack checksum formatting (#13666)
* Improve spack checksum formatting * Add colon * Fix Python 2 bug
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/checksum.py1
-rw-r--r--lib/spack/spack/stage.py6
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/checksum.py b/lib/spack/spack/cmd/checksum.py
index 2518dfef9f..d8407651b6 100644
--- a/lib/spack/spack/cmd/checksum.py
+++ b/lib/spack/spack/cmd/checksum.py
@@ -61,3 +61,4 @@ def checksum(parser, args):
print()
print(version_lines)
+ print()
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py
index d2dd3e6e7a..164ed91b2f 100644
--- a/lib/spack/spack/stage.py
+++ b/lib/spack/spack/stage.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from __future__ import print_function
+
import os
import stat
import sys
@@ -760,7 +762,7 @@ def get_checksums_for_versions(
*spack.cmd.elide_list(
["{0:{1}} {2}".format(str(v), max_len, url_dict[v])
for v in sorted_versions]))
- tty.msg('')
+ print()
archives_to_fetch = tty.get_number(
"How many would you like to checksum?", default=1, abort='q')
@@ -807,7 +809,7 @@ def get_checksums_for_versions(
])
num_hash = len(version_hashes)
- tty.msg("Checksummed {0} version{1} of {2}".format(
+ tty.msg("Checksummed {0} version{1} of {2}:".format(
num_hash, '' if num_hash == 1 else 's', name))
return version_lines