Change slightly the output of _doCheckSum so that it's type:hash for easier parsing.

This commit is contained in:
Jesse Keating 2008-08-04 17:04:19 -04:00
parent be8b06d523
commit 5beb34227e
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ def _ensuredir(target, logger, force=False, clean=False):
def _doCheckSum(path, hash, logger):
"""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:
@ -115,4 +115,4 @@ def _doCheckSum(path, hash, logger):
sum.update(chunk)
myfile.close()
return sum.hexdigest()
return '%s:%s' % (hash, sum.hexdigest())