Your message dated Fri, 28 Dec 2007 19:02:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#457697: fixed in python-debian 0.1.8
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-debian
Version: 0.1.6
Severity: normal
Tags: patch

When I try to use debian_bundle.debian_support.updateFile, I get the
following exception:

[EMAIL PROTECTED]:~$ /tmp/test_updateFile.py
Traceback (most recent call last):
  File "/tmp/test_updateFile.py", line 9, in ?
    updateFile( remote, local, True )
  File "/var/lib/python-support/python2.4/debian_bundle/debian_support.py", 
line 399, in updateFile
    for (field, value) in fields:
ValueError: too many values to unpack

Attached are two files, test_updateFile.py is a small test case that
demonstrates the problem. fix_updateFile.diff is a patch which fixes
this problem.

thanks,
stew

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-debian depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.7.5      automated rebuilding support for p

python-debian recommends no packages.

-- no debconf information
#!/usr/bin/python

from debian_bundle.debian_support import downloadFile,updateFile

remote = 'http://ftp.us.debian.org/debian/dists/sid/main/binary-amd64/Packages'
local = '/tmp/Packages'

downloadFile( remote, local )
updateFile( remote, local, True )
--- /tmp/debian_support.py.orig 2007-12-24 11:38:28.000000000 -0500
+++ /tmp/debian_support.py.mine 2007-12-24 11:40:09.000000000 -0500
@@ -396,7 +396,8 @@
         return downloadFile(remote, local)
 
     for fields in index_fields:
-        for (field, value) in fields:
+       for field in fields.keys():
+           value=fields[ field ]
             if field == 'SHA1-Current':
                 (remote_hash, remote_size) = re_whitespace.split(value)
                 if local_hash == remote_hash:

--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.8

We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive:

python-debian_0.1.8.dsc
  to pool/main/p/python-debian/python-debian_0.1.8.dsc
python-debian_0.1.8.tar.gz
  to pool/main/p/python-debian/python-debian_0.1.8.tar.gz
python-debian_0.1.8_all.deb
  to pool/main/p/python-debian/python-debian_0.1.8_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.
Adeodato Simó <[EMAIL PROTECTED]> (supplier of updated python-debian 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: SHA1

Format: 1.7
Date: Fri, 28 Dec 2007 19:46:13 +0100
Source: python-debian
Binary: python-debian
Architecture: source all
Version: 0.1.8
Distribution: unstable
Urgency: low
Maintainer: Debian python-debian Maintainers <[EMAIL PROTECTED]>
Changed-By: Adeodato Simó <[EMAIL PROTECTED]>
Description: 
 python-debian - python modules to work with Debian-related data formats
Closes: 457697 457854 457855 457929
Changes: 
 python-debian (0.1.8) unstable; urgency=low
 .
   [ Filippo Giunchedi ]
   * Move tests to a separate subdirectory.
 .
   [ Stefano Zacchiroli ]
   * Add examples dir for deb822 with a simple example.
 .
   [ Adeodato Simó ]
 .
   * Sync debian_support.py with the latest version from the secure-testing
     repository. Note that this removes support for version comparison without
     apt_pkg. (Our copy was modified in 0.1.2 to *accept* ~ in version strings,
     but comparison without apt_pkg was already broken by then.)
 .
     Also, undo the change introduced for #431087, since we shouldn't be
     keeping incompatible versions of debian_support.py around, plus the
     desired functionality in that bug report is best provided by the deb822
     module. (Closes: #457697, #457854)
 .
   * While rewriting the grep-maintainer example to use deb822.Packages to
     accommodate the above change, make it cope with stanzas without a
     maintainer field as well. (Closes: #457855)
 .
   * Fix dump() method of deb822._multivalued. (Closes: #457929)
 .
   * Small improvements to the exception handling in the grep-maintainer
     example.
 .
   * Bump Standards-Version to 3.7.3 (no changes needed).
Files: 
 388c512ba2a645d7f4a7d3f518da3cdd 965 devel optional python-debian_0.1.8.dsc
 ad5b50054195f192a393c50c44144e65 107309 devel optional 
python-debian_0.1.8.tar.gz
 50689ab313e322ca37c8bf565abfe431 43396 devel optional 
python-debian_0.1.8_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Signed by Adeodato Simó <[EMAIL PROTECTED]>

iEYEARECAAYFAkd1RK8ACgkQOzsxEBcMRN0wQQCeNEfQbdpN0xy9ehq6ixrX9fBL
p6QAn1vLCeFprNd/77R249WFGt2Lw1qj
=7nL9
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to