diff options
Diffstat (limited to 'app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashlib-r2.patch')
-rw-r--r-- | app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashlib-r2.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashlib-r2.patch b/app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashlib-r2.patch new file mode 100644 index 000000000000..3cdd35bd81c6 --- /dev/null +++ b/app-arch/ipkg-utils/files/ipkg-utils-1.7.050831-hashlib-r2.patch @@ -0,0 +1,25 @@ +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 |