diff options
Diffstat (limited to 'linden/scripts/install.py')
-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 5069918..1db9bb3 100755 --- a/linden/scripts/install.py +++ b/linden/scripts/install.py | |||
@@ -64,7 +64,7 @@ def add_indra_lib_path(): | |||
64 | base_dir = add_indra_lib_path() | 64 | base_dir = add_indra_lib_path() |
65 | 65 | ||
66 | import copy | 66 | import copy |
67 | import md5 | 67 | from hashlib import md5 |
68 | import optparse | 68 | import optparse |
69 | import os | 69 | import os |
70 | import platform | 70 | import platform |
@@ -75,8 +75,6 @@ import tempfile | |||
75 | import urllib2 | 75 | import urllib2 |
76 | import urlparse | 76 | import urlparse |
77 | 77 | ||
78 | from sets import Set as set, ImmutableSet as frozenset | ||
79 | |||
80 | from indra.base import llsd | 78 | from indra.base import llsd |
81 | from indra.util import helpformatter | 79 | from indra.util import helpformatter |
82 | 80 | ||
@@ -106,7 +104,7 @@ class InstallFile(object): | |||
106 | return "ifile{%s:%s}" % (self.pkgname, self.url) | 104 | return "ifile{%s:%s}" % (self.pkgname, self.url) |
107 | 105 | ||
108 | def _is_md5sum_match(self): | 106 | def _is_md5sum_match(self): |
109 | hasher = md5.new(file(self.filename, 'rb').read()) | 107 | hasher = md5(file(self.filename, 'rb').read()) |
110 | if hasher.hexdigest() == self.md5sum: | 108 | if hasher.hexdigest() == self.md5sum: |
111 | return True | 109 | return True |
112 | return False | 110 | return False |