diff options
Diffstat (limited to '')
-rwxr-xr-x | linden/scripts/install.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/linden/scripts/install.py b/linden/scripts/install.py index f886a6e..3843c83 100755 --- a/linden/scripts/install.py +++ b/linden/scripts/install.py | |||
@@ -34,7 +34,7 @@ $/LicenseInfo$ | |||
34 | """ | 34 | """ |
35 | 35 | ||
36 | import copy | 36 | import copy |
37 | import md5 | 37 | from hashlib import md5 |
38 | import optparse | 38 | import optparse |
39 | import os | 39 | import os |
40 | import platform | 40 | import platform |
@@ -46,8 +46,6 @@ import tempfile | |||
46 | import urllib2 | 46 | import urllib2 |
47 | import urlparse | 47 | import urlparse |
48 | 48 | ||
49 | from sets import Set as set, ImmutableSet as frozenset | ||
50 | |||
51 | # Locate -our- python library relative to our install location. | 49 | # Locate -our- python library relative to our install location. |
52 | from os.path import realpath, dirname, join | 50 | from os.path import realpath, dirname, join |
53 | 51 | ||
@@ -76,7 +74,7 @@ class InstallFile(object): | |||
76 | return "ifile{%s:%s}" % (self.pkgname, self.url) | 74 | return "ifile{%s:%s}" % (self.pkgname, self.url) |
77 | 75 | ||
78 | def _is_md5sum_match(self): | 76 | def _is_md5sum_match(self): |
79 | hasher = md5.new(file(self.filename, 'rb').read()) | 77 | hasher = md5(file(self.filename, 'rb').read()) |
80 | if hasher.hexdigest() == self.md5sum: | 78 | if hasher.hexdigest() == self.md5sum: |
81 | return True | 79 | return True |
82 | return False | 80 | return False |