Package: photon Version: 0.4.6-1.1 Severity: minor File: /usr/bin/photon Tags: patch upstream
Attached is a patch to eliminate the deprecation warning caused by using the md5 module. Making this change to photon requires python version >=2.5 because it uses the hashlib module. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (900, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages photon depends on: ii python 2.6.6-3+squeeze1 interactive high-level object-orie ii python-central 0.6.16+nmu1 register and build utility for Pyt ii python-imaging 1.1.7-2 Python Imaging Library Versions of packages photon recommends: ii dcraw 8.99-1+b1 decode raw digital camera images ii gimp 2.6.10-1 The GNU Image Manipulation Program photon suggests no packages. -- no debconf information
--- photon.orig 2010-11-25 01:25:25.221771606 -0800 +++ /usr/bin/photon 2010-11-25 01:37:50.769271968 -0800 @@ -65,7 +65,7 @@ from tempfile import gettempdir from commands import getstatusoutput from Photon import EXIF, Video, RAW, airspeed -import md5 +import hashlib import Photon # ------------------------------------------------------------------------ @@ -1485,7 +1485,7 @@ try: if ((options['forcecreate'] > 0) or (os.stat(existentfile)[ST_SIZE] != os.stat(newfile)[ST_SIZE]) or - (md5.new(open(existentfile).read()).digest() != md5.new(open(newfile).read()).digest())): + (hashlib.md5.new(open(existentfile).read()).digest() != hashlib.md5.new(open(newfile).read()).digest())): os.rename(newfile, existentfile) except: os.rename(newfile, existentfile)