Your message dated Sun, 14 Mar 2010 11:18:59 +0000
with message-id <[email protected]>
and subject line Bug#466753: fixed in python-debian 0.1.15
has caused the Debian Bug report #466753,
regarding python-debian: debian_bundle parses some multilines fields 
inconsistantly
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.)


-- 
466753: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466753
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.14
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi!

i discovered this one when trying to run the patch-tracker.debian.net code
on an updated sid system.

if a record in a Sources file has only a single checksum entry, it's returned
as a single dict object.  if it has multiple entries, they are returned as
a list of dicts.  for example, with an abbriviated Sources file like this:

cat << EOF > sourcesfile
Package: debian-archive-keyring
Files:
 2675031b2286ca8dfc085e2a9c9d38ed 838 debian-archive-keyring_2009.01.31.dsc
 5365c07ddcf639544933552e31a571ee 13627 debian-archive-keyring_2009.01.31.tar.gz
Checksums-Sha1:
 dd987a5ee85d8c4fc3e115f60a6a021e78c626dd 13627 
debian-archive-keyring_2009.01.31.tar.gz

Package: povray
Files:
 8ba29fc593db0da2f69b24cb732a787a 1404 povray_3.7.0~beta29-1.dsc
 5f18fcdf332164151fc8f8e200f9bffe 6761402 povray_3.7.0~beta29.orig.tar.gz
 0b7ea3d5724f5f7a50c0277a194fea3f 24696 povray_3.7.0~beta29-1.diff.gz
Checksums-Sha1:
 c2b88b819f5b8fe731990bec2e02654d67c5df34 6761402 
povray_3.7.0~beta29.orig.tar.gz
 bf7ed630c44fa37b0eb24b666a5a16c2701ec202 24696 povray_3.7.0~beta29-1.diff.gz
EOF

and the following code:

slist = deb822.Sources.iter_paragraphs(file('sourcesfile'))
for ent in slist:
  print ent['Checksums-Sha1']

you get:

{'sha1': 'dd987a5ee85d8c4fc3e115f60a6a021e78c626dd', 'size': '13627', 'name': 
'debian-archive-keyring_2009.01.31.tar.gz'}
[{'sha1': 'c2b88b819f5b8fe731990bec2e02654d67c5df34', 'size': '6761402', 
'name': 'povray_3.7.0~beta29.orig.tar.gz'}, {'sha1': 
'bf7ed630c44fa37b0eb24b666a5a16c2701ec202', 'size': '24696', 'name': 
'povray_3.7.0~beta29-1.diff.gz'}

and i would argue you should get:

[{'sha1': 'dd987a5ee85d8c4fc3e115f60a6a021e78c626dd', 'size': '13627', 'name': 
'debian-archive-keyring_2009.01.31.tar.gz'}]
[{'sha1': 'c2b88b819f5b8fe731990bec2e02654d67c5df34', 'size': '6761402', 
'name': 'povray_3.7.0~beta29.orig.tar.gz'}, {'sha1': 
'bf7ed630c44fa37b0eb24b666a5a16c2701ec202', 'size': '24696', 'name': 
'povray_3.7.0~beta29-1.diff.gz'}

which i believe was the previous behavior.

i should be able to code around this problem but it does seem to be
a regression.

        sean

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

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

Versions of packages python-debian depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-support                1.0.3      automated rebuilding support for P

Versions of packages python-debian recommends:
ii  python-apt                    0.7.11.0   Python interface to libapt-pkg

Versions of packages python-debian suggests:
ii  gpgv                          1.4.9-4    GNU privacy guard - signature veri

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKat+/ynjLPm522B0RAorKAJkBUww/FFblYe89Jnd0TVm4Z51k2ACfRC0k
m7hToedec/16kKqNgpu6kd0=
=Jx2c
-----END PGP SIGNATURE-----



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

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.15.dsc
  to main/p/python-debian/python-debian_0.1.15.dsc
python-debian_0.1.15.tar.gz
  to main/p/python-debian/python-debian_0.1.15.tar.gz
python-debian_0.1.15_all.deb
  to main/p/python-debian/python-debian_0.1.15_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.
John Wright <[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.8
Date: Sun, 14 Mar 2010 05:04:50 -0600
Source: python-debian
Binary: python-debian
Architecture: source all
Version: 0.1.15
Distribution: unstable
Urgency: low
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: John Wright <[email protected]>
Description: 
 python-debian - Python modules to work with Debian-related data formats
Closes: 466753 495272 539316 539334 543223 552190 562257 570210 571470 573009
Changes: 
 python-debian (0.1.15) unstable; urgency=low
 .
   [ John Wright ]
   * deb822: Don't ignore leading newlines on field data with apt_pkg
     (Closes: #466753)
   * changelog: Consistently parse different types of inputs.  The
     previous implementation added extra newlines when given a file
     object as input, rather than the result of str.splitlines().
     (Closes: #539316)
   * deb822: Faster non-shared storage by keeping a TagFile object
     around for each Deb822 object yielded
 .
   [ Stefano Zacchiroli ]
   * make debian_support.Version hashable, patch from Piotr Ożarowski
     (Closes: #543223)
 .
   [ Filippo Giunchedi ]
   * changelog: add iterator over changelog blocks (Closes: #539334)
   * changelog: split tests into tests/test_changelog.py for consistency
 .
   [ John Wright ]
   * deb822: Use the apt_pkg.TagFile class instead of apt_pkg.ParseTagFile()
     (Closes: #552190)
   * test_deb822.py: Update to support new gpg "SIG_ID" algorithm
   * deb822: Better support for non-ascii values.  Deb822 objects now
     always contain unicode objects instead of strings.  Use the encoding
     argument to Deb822's initializer and its iter_paragraphs class
     method if the encoding of a file you are reading in is not utf-8.
     (The dump method also takes an encoding argument, if you wish the
     output not to be utf-8-encoded.) (Closes: #495272)
   * Use the apt_pkg.TagFile iterator interface instead of hacking its
     offset.  As of python-apt version 0.7.94, that interface doesn't use
     shared storage. (Closes: #571470)
   * debian_support: Add a native python Version class, based on Raphael
     Hertzog's DpkgVersion class in the PTS (Closes: #562257, #573009)
 .
   [ Jelmer Vernooij ]
   * Remove unused imports in the debfile and debtags modules
 .
   [ John Wright ]
   * changelog: Use debian_support.Version directly
   * Deprecate the 'debian_bundle' package in favor of a new 'debian'
     package (Closes: #570210)
   * debian_support: split tests into tests/test_debian_support.py for
     consistency
   * Convert to "3.0 (native)" source format and update Standards-Version
     to 3.8.4 (no changes necessary)
Checksums-Sha1: 
 2a404ba75852083028698894456b5c2edbe32ef2 1241 python-debian_0.1.15.dsc
 2ea86ca50ff617f86c71b32849d8dde6388e771d 181539 python-debian_0.1.15.tar.gz
 20c252cd7a20d678eeb4e8acee9eec0ad7006918 57760 python-debian_0.1.15_all.deb
Checksums-Sha256: 
 d84a997708eebcbd287c8e712af37c93d8c3961452fe9f68a106748612fababc 1241 
python-debian_0.1.15.dsc
 f6a523f18aacc99eaaaaa9caf783e38b841617a18f79279dde9a88a79f7f38f4 181539 
python-debian_0.1.15.tar.gz
 87c0657f66b82be33bc3987fe8a40bfca5a51d0947b98da5626dfd6c354f8a21 57760 
python-debian_0.1.15_all.deb
Files: 
 378062222df685356efe2e82efa479e5 1241 python optional python-debian_0.1.15.dsc
 d58345b37efdba5c40f8e88496926ff8 181539 python optional 
python-debian_0.1.15.tar.gz
 b2d8b404fd71f253d24dea73f620c631 57760 python optional 
python-debian_0.1.15_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkucxIoACgkQ0UIZh3p4ZWFTWQCgg3hKi3oEeUXsE8DtRw8Tq6xe
khMAnR3XibynwBdh+/M3oyqoTI77sW4K
=+R0r
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to