Bug#715558: devscripts: drop some entries in control when wrap-and-sorted

James McCoy jamessan at debian.org
Wed Jul 10 14:58:04 UTC 2013


On Jul 10, 2013 10:00 AM, "Benjamin Drung" <bdrung at debian.org> wrote:
>
> Is this control file valid with the space in the empty line? If so, is
> this a bug in wrap-and-sort or in python3-debian?

According to policy section 5.1, "The paragraphs are separated by empty
lines.  Parsers may accept lines consisting solely of spaces and tabs as
paragraph separators, but control files should use empty lines."

So a strict parser should require an empty line to delineate a new
paragraph. This seems to be what python3-debian did and it discarded the
entire ibus-gtk paragraph when it encountered the whitespace only line.

Also in 5.1 is "… and lines consisting only of spaces and tabs are not
allowed within field values or between fields.  Empty lines in field values
are usually escaped by representing them by a space followed by a dot."

According to the above, I'd suggest reassigning this to python3-debian and
that it be changed to either treat the whitespace line as an empty line or
throw an exception staying the file is malformed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130710/9324b664/attachment.html>


More information about the devscripts-devel mailing list