Change slightly the output of _doCheckSum so that it's type:hash for easier parsing.
This commit is contained in:
parent
be8b06d523
commit
5beb34227e
@ -90,7 +90,7 @@ def _ensuredir(target, logger, force=False, clean=False):
|
|||||||
|
|
||||||
def _doCheckSum(path, hash, logger):
|
def _doCheckSum(path, hash, logger):
|
||||||
"""Generate a checksum hash from a provided path.
|
"""Generate a checksum hash from a provided path.
|
||||||
Return the hash"""
|
Return a string of type:hash"""
|
||||||
|
|
||||||
# Try to figure out what hash we want to do
|
# Try to figure out what hash we want to do
|
||||||
try:
|
try:
|
||||||
@ -115,4 +115,4 @@ def _doCheckSum(path, hash, logger):
|
|||||||
sum.update(chunk)
|
sum.update(chunk)
|
||||||
myfile.close()
|
myfile.close()
|
||||||
|
|
||||||
return sum.hexdigest()
|
return '%s:%s' % (hash, sum.hexdigest())
|
||||||
|
Loading…
Reference in New Issue
Block a user