Your message dated Sun, 05 Aug 2007 07:02:11 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#431087: fixed in python-debian 0.1.4
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.3
Severity: wishlist
File: /usr/share/python-support/python-debian/debian_bundle/debian_support.py
Tags: patch
Parsing Packages file currently yields lists of tuples <field name,
field value>. I found that unfortunate given that I'm convinced that 99%
of the times one parses a Package file is to look at *some* fields of a
given package entry rather than at *all* fields. Having a dictionary
would help in this respect and rebuilding the list of tuples is just a
matter of list(dict.iteritems()).
My argument is hence to optimize the most frequent usage pattern.
Also, given that caseness is not significant as per RFC 822, I recommend
to lowercase field names before creating the dictionary.
The attached patch implements both this requests, can you please
consider applying it?
Many thanks in advance (and as a whole for the python-debian effort!)
Cheers.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.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.6.4 automated rebuilding support for p
python-debian recommends no packages.
-- no debconf information
--- /usr/share/python-support/python-debian/debian_bundle/debian_support.py
2007-06-17 16:50:52.000000000 +0200
+++ debian_support.py.zack 2007-06-29 17:32:44.000000000 +0200
@@ -206,9 +206,9 @@
contents = "%s\n%s" % (contents, ncontents)
else:
break
- pkg.append((name, contents))
+ pkg.append((name.lower(), contents))
if pkg:
- yield pkg
+ yield dict(pkg)
def raiseSyntaxError(self, msg, lineno=None):
if lineno is None:
--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.4
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.4.dsc
to pool/main/p/python-debian/python-debian_0.1.4.dsc
python-debian_0.1.4.tar.gz
to pool/main/p/python-debian/python-debian_0.1.4.tar.gz
python-debian_0.1.4_all.deb
to pool/main/p/python-debian/python-debian_0.1.4_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.7
Date: Sun, 5 Aug 2007 00:41:24 -0600
Source: python-debian
Binary: python-debian
Architecture: source all
Version: 0.1.4
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: 431087
Changes:
python-debian (0.1.4) unstable; urgency=low
.
[ James Westby ]
* changelog.py
- Add allow_empty_author option to changelog to allow the author line
to have no information.
.
[ Stefano Zacchiroli ]
* debian/control
- joining the team: add myself as an uploader
- add Vcs-Bzr field pointing to our Bzr repository on bzr.debian.org
* arfile.py / debfile.py
- new modules implementing (read-only) dpkg-deb like access to .deb
packages; when possible, access to information contained in .deb is made
available via other debian_bundle classes (e.g. Changelog, Deb822, ...)
- code contributed by Stefano Zacchiroli and Filippo Giunchedi
- corresponding examples in examples/debfile
* debian_support.py
- yield dictionaries instead of tuples in Packages parsing and normalize
to lower case 822 field names (Closes: #431087)
- no longer require a space after a ':' in RFC 822 fields; fix bogus
parse errors of Packages-like file with PackageFile() class
* examples/
- added grep-maintainer example to show the Packages parsing API
.
[ John Wright ]
* debian_bundle/deb822.py, debian_bundle/test_deb822.py, deb822.py:
- Import latest version of deb822, and create a "dummy" top-level module
for compatibility
- For multiline fields that start with a newline (e.g. Files in a .dsc,
MD5Sum in Release files), the line with the "Field:" should not end in
trailing whitespace. Fixed and added test cases.
* setup.py:
- The version wasn't getting updated, so I've renamed it to setup.py.in,
and added a __CHANGELOG_VERSION__ placeholder
* debian/rules:
- Generate generate setup.py from setup.py.in, filling in the version
information from debian/changelog
- No longer delete deb822 files
* debian/control:
- Add myself as an uploader
- Add Provides, Conflicts, and Replaces fields for python-deb822
- When describing features, mention which modules they are implemented in
* HISTORY.deb822, debian/docs:
- Install old changelog for deb822 as
/usr/share/doc/python-debian/HISTORY.deb822
* debian_bundle/changelog.py:
- Accept numbers, '+', and '.' in the distribution field, to match dpkg's
behavior
Files:
fdff8c16dbe275864ca23f9bf54bbac9 901 devel optional python-debian_0.1.4.dsc
b5b3d64a3991e8144fe18b72dc7c4b8c 135069 devel optional
python-debian_0.1.4.tar.gz
09c49556189110f24e3ae58f85bd2fd2 47010 devel optional
python-debian_0.1.4_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGtXJP0UIZh3p4ZWERAj4rAJ93JcSMMZ86U8uGWD0NG8EdLYhXrwCeJq19
pQB2a/c98Cm/CJIPkQXRh9s=
=/W8x
-----END PGP SIGNATURE-----
--- End Message ---