Merge pull request #779 from brendandahl/md5fix1

Fix hash for windows
This commit is contained in:
Artur Adib 2011-11-07 13:59:15 -08:00
commit 085710f9db

View File

@ -321,7 +321,7 @@ def verifyPDFs(manifestList):
for item in manifestList:
f = item['file']
if os.access(f, os.R_OK):
fileMd5 = hashlib.md5(open(f).read()).hexdigest()
fileMd5 = hashlib.md5(open(f, 'rb').read()).hexdigest()
if 'md5' not in item:
print 'ERROR: Missing md5 for file "' + f + '".',
print 'Hash for current file is "' + fileMd5 + '"'