diff --git i/ipkg.py w/ipkg.py
index 02aab22..145686c 100644
--- i/ipkg.py
+++ w/ipkg.py
@@ -36,10 +36,10 @@ import tempfile
 import os
 import sys
 import glob
-import md5
 import re
 import string
 import commands
+from hashlib import md5
 from stat import ST_SIZE
 
 class Version:
@@ -136,7 +136,7 @@ class Package:
 
             # compute the MD5.
             f = open(fn, "r")
-            sum = md5.new()
+            sum = md5()
             while 1:
                 data = f.read(1024)
                 if not data: break
