From eaed704948abfc31a4f9e9a52f25695cc5855817 Mon Sep 17 00:00:00 2001 From: m40l <44062437+m40l@users.noreply.github.com> Date: Fri, 19 Jan 2024 20:15:58 -0800 Subject: [PATCH] Hash comparisons should be case insensitive --- autobuild/hash_algorithms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autobuild/hash_algorithms.py b/autobuild/hash_algorithms.py index 99c6231..8c62b63 100644 --- a/autobuild/hash_algorithms.py +++ b/autobuild/hash_algorithms.py @@ -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)