Skip to content

Commit

Permalink
Hash comparisons should be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
m40l committed Jan 20, 2024
1 parent b1f9316 commit eaed704
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 eaed704

Please sign in to comment.