#3450 Re-generate the sha for every file.
Merged by pingou. Opened by pingou.
fix_checksums  into  master

Download 3450.patch

Basically, we were instantiating the sha outside of the loop going
through the files. This meant that if we generated the sha for two
files, the sha of the second included the first one in it...

This commit fixes this be making sure we compute a new sha specific
for each file.

Fixes https://pagure.io/pagure/issue/3448

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 28a8734e3a21537f5b80ea7abc124ab7e639deb8

:thumbsup:

+1

Thanks folks :)

I've worked on adding tests and found a couple of bugs while doing so, but I'll push them to a new PR

Pull-Request has been merged by pingou

Metadata