Bug#501927: debian_bundle fails with empty lines containing a space

Siegfried Gevatter (RainCT) rainct at ubuntu.com
Sat Oct 11 16:50:03 UTC 2008


Package: python-debian
Severity: normal
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu intrepid patch

Hello,

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 have they had 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.

Kind regards,

-- 
Siegfried-Angel Gevatter Pujals (RainCT)
Ubuntu Developer. Debian Contributor.


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