Bug#539334: python-debian: Please add methods to Changelog to navigate through existing changelog blocks

Filippo Giunchedi filippo at debian.org
Sun Aug 9 11:43:40 UTC 2009

On Thu, Jul 30, 2009 at 08:32:34PM +0200, Michael Bienia wrote:
> I'm trying to improve some parts from Ubuntu's requestsync script (in
> ubuntu-dev-tools) and was looking if the Changelog class from
> python-debian is usable to replace the simple code from requestsync to
> copy new changelog entries from a existing Debian changelog into the
> sync bug.
> Unfortunately the Changelog class does only support adding new blocks
> but nothing to access existing changelog blocks or to iterate over the
> changelog blocks. I'd like to do something like this:

the attached patch is supposed to add iterator over changelog blocks, I'm
sending it for review if someone wants to comment

Filippo Giunchedi - http://esaurito.net - 0x6B79D401

Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem.
-- David Wheeler

More information about the pkg-python-debian-maint mailing list