Display sha256 instead of sha1 on 'waf dist'

This commit is contained in:
Thomas Nagy 2016-12-27 14:42:15 +01:00
parent 5c2db88730
commit c12947571d
1 changed files with 2 additions and 2 deletions

View File

@ -385,11 +385,11 @@ class Dist(Context.Context):
self.fatal('Valid algo types are tar.bz2, tar.gz, tar.xz or zip')
try:
from hashlib import sha1
from hashlib import sha256
except ImportError:
digest = ''
else:
digest = ' (sha=%r)' % sha1(node.read(flags='rb')).hexdigest()
digest = ' (sha256=%r)' % sha256(node.read(flags='rb')).hexdigest()
Logs.info('New archive created: %s%s', self.arch_name, digest)