Skip to content

Commit

Permalink
Merge pull request #39 from m40l/main
Browse files Browse the repository at this point in the history
Hash comparisons should be case insensitive
  • Loading branch information
bennettgoble authored Jan 20, 2024
2 parents b1f9316 + eaed704 commit c05663f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autobuild/hash_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def verify_hash(hash_algorithm, pathname, hash):
raise AutobuildError("Unsupported hash type %s for %s" %
(hash_algorithm, pathname))

# The final comparison should be case insensitive
hash = hash.lower()

# Apparently we do have a function to support this hash_algorithm. Call
# it.
return function(pathname, hash)
Expand Down

0 comments on commit c05663f

Please sign in to comment.