Bug 1526744 - find-dupes.py: Calculate md5 by chunk.
authorRob Lemley <rob@thunderbird.net>
Thu, 21 Feb 2019 20:14:17 +0000 (15:14 -0500)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 9 Jul 2019 20:09:04 +0000 (21:09 +0100)
commit5bc5cb3fec8c54eba07615e46d11f6050babd603
tree7ea1038b304a8d058b24be99cba0e6ed79f69a8e
parent6cd07bd83bf32035f9e6001706ca5bb2205bb3a1
Bug 1526744 - find-dupes.py: Calculate md5 by chunk.

Read the file in chunks and use md5.update() rather than reading the entire
file into RAM and calculating the hash all at once. This prevents out of memory
errors on build systems with low RAM.

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1526744-find-dupes.py-Calculate-md5-by-chunk.patch
toolkit/mozapps/installer/find-dupes.py