Bug#579651: python-debian: No public API for getting ChangeBlocks from a Changelog
jsw at debian.org
Thu Apr 29 17:19:47 UTC 2010
forcemerge 539334 579651
On Thu, Apr 29, 2010 at 10:48:10AM -0400, Barry Warsaw wrote:
> Package: python-debian
> Version: 0.1.14ubuntu2
> Severity: important
> As far as I can tell, there is no public API to get ChangeBlock objects given
> a Changelog object. I can use changelog._blocks although that is non-public.
> I want to get ChangeBlocks because I want the .changes for a particular
This is fixed in version 0.1.15, by making Changelog objects iterable
(see [bug 539334]). You can download the latest version from
Unless you have verified that a bug is not Ubuntu-specific, you should
usually use [Ubuntu's bug reporting tools] to file bugs against
packages in that distribution. I believe there is a mechanism to ask
them to sync a package with Debian in order to fix bugs like this one,
but I'm not really familiar with it.
You mention wanting to get the .changes for a particular version.
Currently the Changelog/ChangeBlock class probably exposes enough
information to generate such a file, but it doesn't actually generate a
.changes file like from 'dpkg-genchanges'. Feel free to file a wishlist
bug via reportbug. Patches are always welcome, too. :) If you do work
on it, it would probably be ideal if the method returned a
debian.deb822.Changes object. Also note that .changes files can (and
often do, in Ubuntu's case) contain changes from a range of versions.
I hope you have found python-debian useful!
John Wright <jsw at debian.org>
More information about the pkg-python-debian-maint