summaryrefslogtreecommitdiffstats
path: root/tupkg/client
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-13 23:27:20 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-11-13 23:27:20 +0100
commitb8f86c505b95b73b532043637bf5230270416a49 (patch)
tree3f24f042e2f5ee0500428111412e77f5497b95e8 /tupkg/client
parentf12b11abc70b03fa75faf211a6311acb1cc1b32d (diff)
downloadaur-b8f86c505b95b73b532043637bf5230270416a49.tar.gz
aur-b8f86c505b95b73b532043637bf5230270416a49.tar.xz
Update tupkg to use hashlib instead of md5 directly.
Reported-by: Imanol Celaya <ilcra1989@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'tupkg/client')
-rwxr-xr-xtupkg/client/tupkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tupkg/client/tupkg b/tupkg/client/tupkg
index a1d26d58..f9980e61 100755
--- a/tupkg/client/tupkg
+++ b/tupkg/client/tupkg
@@ -19,10 +19,11 @@ import struct
import os.path
import cgi
import urllib
-import md5
import getopt
import ConfigParser
+from hashlib import md5
+
class ClientFile:
def __init__(self, pathname):
self.pathname = pathname