diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:25:17 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | b87ca6da27fb8a5d8a48966b65c75edf30e992a2 (patch) | |
tree | 018ed375509cf88db5c77ffaad70b933b53e8ca7 /lib | |
parent | e2dc4b0b608642792643f212b8f850d5b68fb477 (diff) | |
download | spack-b87ca6da27fb8a5d8a48966b65c75edf30e992a2.tar.gz spack-b87ca6da27fb8a5d8a48966b65c75edf30e992a2.tar.bz2 spack-b87ca6da27fb8a5d8a48966b65c75edf30e992a2.tar.xz spack-b87ca6da27fb8a5d8a48966b65c75edf30e992a2.zip |
black: do not align `sha56`'s with spaces in `spack checksum` output
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/stage.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index ddd5bba8b8..a5a8f4458b 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -957,17 +957,9 @@ def get_checksums_for_versions(url_dict, name, **kwargs): if not version_hashes: tty.die("Could not fetch any versions for {0}".format(name)) - # Find length of longest string in the list for padding - max_len = max(len(str(v)) for v, h in version_hashes) - # Generate the version directives to put in a package.py version_lines = "\n".join( - [ - " version('{0}', {1}sha256='{2}'{3})".format( - v, " " * (max_len - len(str(v))), h, expand_arg - ) - for v, h in version_hashes - ] + [" version('{0}', sha256='{1}'{2})".format(v, h, expand_arg) for v, h in version_hashes] ) num_hash = len(version_hashes) |