Skip to content

Commit eaed704

Browse files
committed
Hash comparisons should be case insensitive
1 parent b1f9316 commit eaed704

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autobuild/hash_algorithms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def verify_hash(hash_algorithm, pathname, hash):
5656
raise AutobuildError("Unsupported hash type %s for %s" %
5757
(hash_algorithm, pathname))
5858

59+
# The final comparison should be case insensitive
60+
hash = hash.lower()
61+
5962
# Apparently we do have a function to support this hash_algorithm. Call
6063
# it.
6164
return function(pathname, hash)

0 commit comments

Comments
 (0)