Skip to content

Commit

Permalink
Add sha512 support for verification upon package download
Browse files Browse the repository at this point in the history
  • Loading branch information
goosemania committed Apr 6, 2020
1 parent 8aac121 commit 702955f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/pulp_rpm/plugins/importers/yum/listener.py
Expand Up @@ -145,7 +145,8 @@ def _verify_checksum(self, unit, location):
return

with open(location) as fp:
sums = util.calculate_checksums(fp, [util.TYPE_MD5, util.TYPE_SHA1, util.TYPE_SHA256])
sums = util.calculate_checksums(fp, [util.TYPE_MD5, util.TYPE_SHA1, util.TYPE_SHA256,
util.TYPE_SHA512])

if sums[unit.checksumtype] != unit.checksum:
error_report = {
Expand Down

0 comments on commit 702955f

Please sign in to comment.