diff options
author | McCabe Maxsted | 2012-01-22 18:32:51 -0700 |
---|---|---|
committer | McCabe Maxsted | 2012-02-18 01:35:39 -0700 |
commit | b9574a9bb56bb30899a2021412a0b565c30743b7 (patch) | |
tree | fdd8c1f717f07c1047d2b9dd7e1b115b4b4f5181 /linden/scripts | |
parent | Fixed chat history muted text checkbox position (diff) | |
download | meta-impy-b9574a9bb56bb30899a2021412a0b565c30743b7.zip meta-impy-b9574a9bb56bb30899a2021412a0b565c30743b7.tar.gz meta-impy-b9574a9bb56bb30899a2021412a0b565c30743b7.tar.bz2 meta-impy-b9574a9bb56bb30899a2021412a0b565c30743b7.tar.xz |
Fixed one of those annoying silly bugs: md5 comparison being case-sensitive
Diffstat (limited to 'linden/scripts')
-rwxr-xr-x | linden/scripts/install.py | 3 |
1 files changed, 2 insertions, 1 deletions
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$ | |||
36 | import sys | 36 | import sys |
37 | import os.path | 37 | import os.path |
38 | import re | 38 | import re |
39 | import string | ||
39 | 40 | ||
40 | # Look for indra/lib/python in all possible parent directories ... | 41 | # Look for indra/lib/python in all possible parent directories ... |
41 | # This is an improvement over the setup-path.py method used previously: | 42 | # This is an improvement over the setup-path.py method used previously: |
@@ -106,7 +107,7 @@ class InstallFile(object): | |||
106 | 107 | ||
107 | def _is_md5sum_match(self): | 108 | def _is_md5sum_match(self): |
108 | hasher = md5(file(self.filename, 'rb').read()) | 109 | hasher = md5(file(self.filename, 'rb').read()) |
109 | if hasher.hexdigest() == self.md5sum: | 110 | if string.lower(hasher.hexdigest()) == string.lower(self.md5sum): |
110 | return True | 111 | return True |
111 | return False | 112 | return False |
112 | 113 | ||