Bug#539334: python-debian: Please add methods to Changelog to navigate through existing changelog blocks
Michael Bienia
geser at ubuntu.com
Thu Jul 30 18:32:34 UTC 2009
Package: python-debian
Version: 0.1.14
Severity: wishlist
Hello,
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:
,----
| new_entries = ""
| for block in changelog:
| if block.version >= current_ubuntu_version:
| new_entries += str(block)
`----
Regards,
Michael
More information about the pkg-python-debian-maint
mailing list