debian_bundle.debian_support doesn't support control files with empty lines containing a space

Bug #281833 reported by Siegfried Gevatter
2
Affects Status Importance Assigned to Milestone
python-debian (Debian)
Fix Released
Unknown
python-debian (Ubuntu)
Fix Released
Low
Unassigned
Hardy
Fix Released
Low
Siegfried Gevatter

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.

Changed in python-debian:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Siegfried Gevatter (rainct) wrote :

Reverse Depends: ubuntu-dev-tools apt-xapian-index ubuntu-dev-tools piuparts edos-debcheck debtorrent dctrl2xml bzr-builddeb apt-p2p

Reverse Build-Depends: bzr-builddeb

Changed in python-debian:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → rainct
Changed in python-debian:
status: Unknown → New
Changed in python-debian (Ubuntu Hardy):
status: In Progress → Fix Released
Jelmer Vernooij (jelmer)
Changed in python-debian (Ubuntu):
status: Triaged → Fix Released
Changed in python-debian (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.