From b9574a9bb56bb30899a2021412a0b565c30743b7 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sun, 22 Jan 2012 18:32:51 -0700 Subject: Fixed one of those annoying silly bugs: md5 comparison being case-sensitive --- linden/scripts/install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linden/scripts/install.py b/linden/scripts/install.py index c69644b..a7c0a48 100755 --- a/linden/scripts/install.py +++ b/linden/scripts/install.py @@ -36,6 +36,7 @@ $/LicenseInfo$ import sys import os.path import re +import string # Look for indra/lib/python in all possible parent directories ... # This is an improvement over the setup-path.py method used previously: @@ -106,7 +107,7 @@ class InstallFile(object): def _is_md5sum_match(self): hasher = md5(file(self.filename, 'rb').read()) - if hasher.hexdigest() == self.md5sum: + if string.lower(hasher.hexdigest()) == string.lower(self.md5sum): return True return False -- cgit v1.1