[Bug 281833] Re: debian_bundle.debian_support doesn't support control files with empty lines containing a space
Bug Watch Updater
281833 at bugs.launchpad.net
Thu Aug 11 13:22:37 UTC 2011
** Changed in: python-debian (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-debian in Ubuntu.
https://bugs.launchpad.net/bugs/281833
Title:
debian_bundle.debian_support doesn't support control files with empty
lines containing a space
Status in “python-debian” package in Ubuntu:
Fix Released
Status in “python-debian” source package in Hardy:
Fix Released
Status in “python-debian” package in Debian:
Fix Released
Bug description:
Binary package hint: python-debian
Parsing hundreds of debian/control files from REVU (Ubuntu's "New
Package Review Platform") using debian_support.PackageFile, I've found
out that it failed with many of them because they have a space between
different Package stanzas (that is, " \n" instead of just "\n").
Therefore, line «if line == '\n':» (line 110, function __iter__)
should be «if line.strip(' ') == '\n':» instead, so that it handles
that case gracefully.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-debian/+bug/281833/+subscriptions
More information about the foundations-bugs
mailing list