You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashl...

26 lines
534 B

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