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>
Sat, 13 Jul 2019 06:27:42 +0000 (07:27 +0100)
commit788c14819cc499fa0cb04f323f3f3c8810833f87
treefca924cd8f93cb04f1b3c380562cd53986fc9dd3
parent4d9199cd1b417a43546713862f8a83023c3b4ff9
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