Your message dated Fri, 09 Jul 2010 09:47:12 +0000
with message-id <[email protected]>
and subject line Bug#517831: fixed in dput 0.9.6.1
has caused the Debian Bug report #517831,
regarding dput: Fix for deprecation warning when used with python 2.6
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
517831: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517831
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dput
Version: 0.9.2.37
Severity: normal
Tags: patch
Hello,
as Ubuntu is currently switching to python 2.6 (I guess Debian will
follow in the near future), dput produces the following warnings:
,----
| /usr/bin/dput:21: DeprecationWarning: the md5 module is deprecated; use
hashlib instead
| import pwd, stat, md5, sha, rfc822
| /usr/bin/dput:21: DeprecationWarning: the sha module is deprecated; use the
hashlib module instead
| import pwd, stat, md5, sha, rfc822
`----
Attached is a patch which makes dput use the hashlib module.
Regards
Michael
diff -Nru dput-0.9.2.37ubuntu2/dput dput-0.9.2.37ubuntu3/dput
--- dput-0.9.2.37ubuntu2/dput 2009-02-10 16:04:34.000000000 +0100
+++ dput-0.9.2.37ubuntu3/dput 2009-03-02 11:37:39.000000000 +0100
@@ -18,7 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import os, sys, string, re, glob, signal
-import pwd, stat, md5, sha, rfc822
+import pwd, stat, rfc822
+from hashlib import md5, sha1
# Now import our modules
import ConfigParser
@@ -170,9 +171,9 @@
if hash == 'md5':
hash_type = md5
else:
- hash_type = sha
+ hash_type = sha1
- check_obj = hash_type.new()
+ check_obj = hash_type()
for line in file_to_test.readlines():
check_obj.update(line)
--- End Message ---
--- Begin Message ---
Source: dput
Source-Version: 0.9.6.1
We believe that the bug you reported is fixed in the latest version of
dput, which is due to be installed in the Debian FTP archive:
dput_0.9.6.1.dsc
to main/d/dput/dput_0.9.6.1.dsc
dput_0.9.6.1.tar.gz
to main/d/dput/dput_0.9.6.1.tar.gz
dput_0.9.6.1_all.deb
to main/d/dput/dput_0.9.6.1_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Y Giridhar Appaji Nag <[email protected]> (supplier of updated dput package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 08 Jul 2010 14:15:52 +0530
Source: dput
Binary: dput
Architecture: source all
Version: 0.9.6.1
Distribution: unstable
Urgency: low
Maintainer: Y Giridhar Appaji Nag <[email protected]>
Changed-By: Y Giridhar Appaji Nag <[email protected]>
Description:
dput - Debian package upload tool
Closes: 517831
Changes:
dput (0.9.6.1) unstable; urgency=low
.
* Use hashlib instead of md5/sha modules for Python 2.6 (Closes: #517831)
* Update Standards-Version to 3.9.0 (no changes required)
Checksums-Sha1:
de295df0218963c88154a2cd9bf9227c66975db9 1127 dput_0.9.6.1.dsc
7ad39cddee2d95bf19cf5d5f21bc646d98f8adaf 49932 dput_0.9.6.1.tar.gz
e25d4030f9b2d3866b29f05c83cf59ef9ec82257 47786 dput_0.9.6.1_all.deb
Checksums-Sha256:
eb717e81ae04f1f91786427c2c95d02acb8e3dd377cbe124b8ca3e60493b92a6 1127
dput_0.9.6.1.dsc
a128a848b3301581d977956edaba8456b19da271fcd3a0a6b08b10edec59b289 49932
dput_0.9.6.1.tar.gz
614040a639d42a3b5e39f9c2c49a34b4fe68979cd7784a7e0bc1fe61868a18ea 47786
dput_0.9.6.1_all.deb
Files:
dcf6ff27c25d0ef6dfb56ba9eb91d248 1127 devel optional dput_0.9.6.1.dsc
89146b579967fdf86ddfc20e58057aed 49932 devel optional dput_0.9.6.1.tar.gz
e9d413229c1dd99c26937c0d390260fb 47786 devel optional dput_0.9.6.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJMNu8MAAoJENbfLHnbvsrcR/4IAMn9EaU3WXGYukcgQ9JyQUW8
AtQzg46AsrRYEM/G6xc7JRAvQflk0ZAibJLn0W4BC4RSLfX98vtKAhPG6SEFM3l4
VNnOE/eqqVMMa/q3E8g3ygZvEabvhBsp58KvcehWAA0B0QhGiwUzbvMiwm4cvG8M
4sg1uqe3+9M4ERl/3RjnUSqe/yx5oMU8cn1hzzG9fwencnLXHaO6pbZDWGm7dYsp
ZhD1ase4Rh6nZYtBoRAscnMr6P85p8gDPPb8Bw5Gp4Wqxs9ulzMtI9d0CRAkIsUe
O1k32fHWgzEzeZYMwNgwaLNYPEfVpGsmOXDop0mW9zz6poGebP2Ol9B0Z8imf9w=
=F0eL
-----END PGP SIGNATURE-----
--- End Message ---