#86 create-filelist: add Checksum sections for other hash algorithms
Merged by tibbs. Opened by abompard.
abompard/quick-fedora-mirror more-checksums  into  master

Download 86.patch

This change adds a Checksum section for the same files with the following hashing algorithms:

  • MD5
  • SHA256
  • SHA512

The SHA1 section is untouched, the hashed files are the same.

This is needed for MirrorManager to scan a primary mirror without actually downloading and checksumming all the files.

I'm not entirely sure why we would do MD5, honestly, but it doesn't really matter. If it helps then great, and I can see that this is already live on the masters anyway. I'm glad I stuck the algorithm in there.

This does expose some bad code in the quick-fedora-mirror client, though; it is hardcoded to look for the first checksum section and assume SHA1. I should fix that, but fortunately as long as the SHA1 section comes first all is well.

Pull-Request has been merged by tibbs

Metadata