Bug 1455143 - Remove code for failing to obtain a hash; r?Build
digest_file() should always return something.
MozReview-Commit-ID: 6PpSUnxhCcL
--- a/build/checksums.py
+++ b/build/checksums.py
@@ -56,20 +56,17 @@ def process_files(files, output_filename
logger.debug('Overwriting existing checksums file "%s"' %
output_filename)
else:
logger.debug('Creating a new checksums file "%s"' % output_filename)
with open(output_filename, 'w+') as output:
for file in files:
for digest in digests:
hash = digest_file(file, digest)
- if hash is None:
- logger.warn('Unable to generate a hash for %s. ' +
- 'Skipping.' % file)
- continue
+
if file.startswith(strip):
short_file = file[len(strip):]
short_file = short_file.lstrip('/')
else:
short_file = file
print >>output, '%s %s %s %s' % (hash, digest,
os.path.getsize(file),
short_file)