Your message dated Fri, 28 Dec 2007 19:02:03 +0000 with message-id <[EMAIL PROTECTED]> and subject line Bug#457854: 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.8 Severity: normal Tags: patch the PackageFile example currently crashes with a TypeError: [EMAIL PROTECTED]:~$ python /usr/share/doc/python-debian/examples/packages/grep-maintainer terceiro Traceback (most recent call last): File "/usr/share/doc/python-debian/examples/packages/grep-maintainer", line 26, in ? if maint_RE.search(pkg['maintainer']): TypeError: list indices must be integers This happens because the __yield__ method in PackageFile class has two yield statements, one 'yield pkg' and other 'yield dict(pkg)'. The attached patch fixes the problem by putting dict() around 'pkg' in the first yield. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core) Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (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 -- Antonio Terceiro <[EMAIL PROTECTED]> http://people.softwarelivre.org/~terceiro/ GnuPG ID: 0F9CB28F=== modified file 'debian_bundle/debian_support.py' --- debian_bundle/debian_support.py 2007-07-12 10:22:05 +0000 +++ debian_bundle/debian_support.py 2007-12-26 14:16:41 +0000 @@ -183,7 +183,7 @@ if line == '\n': if len(pkg) == 0: self.raiseSyntaxError('expected package record') - yield pkg + yield dict(pkg) pkg = [] line = self.file.readline() self.lineno += 1
--- 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 ---

