Update checksum to print new version syntax.

This commit is contained in:
Todd Gamblin 2014-09-27 15:33:27 -07:00
parent 608191bd8c
commit d7984c7540

View File

@ -117,7 +117,5 @@ def checksum(parser, args):
if not version_hashes: if not version_hashes:
tty.die("Could not fetch any available versions for %s." % pkg.name) tty.die("Could not fetch any available versions for %s." % pkg.name)
dict_string = [" '%s' : '%s'," % (v, h) for v, h in version_hashes] version_lines = [" version('%s', '%s')" % (v, h) for v, h in version_hashes]
dict_string = ['{'] + dict_string + ["}"] tty.msg("Checksummed new versions of %s:" % pkg.name, *version_lines)
tty.msg("Checksummed new versions of %s:" % pkg.name, *dict_string)