aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'linden/scripts/install.py')
-rwxr-xr-xlinden/scripts/install.py6
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():
64base_dir = add_indra_lib_path() 64base_dir = add_indra_lib_path()
65 65
66import copy 66import copy
67import md5 67from hashlib import md5
68import optparse 68import optparse
69import os 69import os
70import platform 70import platform
@@ -75,8 +75,6 @@ import tempfile
75import urllib2 75import urllib2
76import urlparse 76import urlparse
77 77
78from sets import Set as set, ImmutableSet as frozenset
79
80from indra.base import llsd 78from indra.base import llsd
81from indra.util import helpformatter 79from 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