Package: rubber Version: 1.1-2.2 Severity: normal Tags: patch
utils.py imports md5, and in Python 2.6 this brings up a deprecation warning. The fix is simple, which is to use hashlib.md5 instead. Patch attached. -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-vserver-686 (SMP w/2 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages rubber depends on: ii python 2.5.2-3 An interactive high-level object-o ii python-support 0.8.4 automated rebuilding support for P ii tetex-bin 2007.dfsg.1-5 TeX Live: teTeX transitional packa ii texlive-latex-base 2007.dfsg.1-5 TeX Live: Basic LaTeX packages rubber recommends no packages. Versions of packages rubber suggests: ii imagemagick 7:6.3.7.9.dfsg1-3~lenny1 image manipulation programs pn sam2p <none> (no description available) pn transfig <none> (no description available) -- no debconf information
--- util.py.orig 2006-03-25 03:43:38.000000000 -0700 +++ util.py 2009-03-16 18:06:39.075677561 -0600 @@ -5,7 +5,7 @@ by the modules for various tasks. """ -import md5 +import hashlib import os, stat, time import imp import re, string @@ -19,7 +19,7 @@ """ Compute the MD5 sum of a given file. """ - m = md5.new() + m = hashlib.md5() file = open(fname) for line in file.readlines(): m.update(line)