Bug#192403: Fails to parse empty Packages file (E: Encountered a section with no Package: header)
On Mon, 23 Jun 2003, Matt Zimmerman wrote:
> I sat down to reproduce this, and it seems that it works perfectly well with
> an empty file. The problem does occur, however, with a file containing only
> a newline.
>
> My guess was that the apt-build Packages files, which triggered this bug for
> most of the submitters, also contain only a newline. So I installed
> apt-build to find out (which kindly diverted my gcc and all sorts of other
> fun stuff). The result:
>
> So, should a Packages file with only whitespace be as valid as an empty one?
> If not, this is an apt-build bug.
>
> At any rate, this fixes the problem for me:
I'd say it's an apt-build bug. Does dpkg handle this case correctly?
Reply to: