[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#811569: More forgiving parser on bad input fields



Hi,

Dose upstream here.

On 19/01/16 23:28, Christoph Berg wrote:
> Ubuntu wily and trusty's "universe" Packages files have a weird python
> header for python-tempest:
> 
> Package: python-tempest
> [...]
> Description: Openstack integration test suite
> Python_version: 2.7
> [...]
> 
> dose-debcheck doesn't like it:
> 
> $ dose-debcheck -v -f -e /home/chroot/wily-amd64/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_wily_universe_binary-amd64_Packages
> (I)StdLoaders: Parsing and normalizing...
> (I)Packages: Parsing Packages file /home/chroot/wily-amd64/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_wily_universe_binary-amd64_Packages...
> Fatal error in module common/format822.ml: 
>  Parse error lines 700601:0--700601:1:
> unexpected RFC 822 token : 'P'
> 
> As the header is irrelevant to the installability problem, it would be
> nice if the tools would just ignore the field. At the moment I'm
> working around the problem using sed -e 's/^Python_/Python-/'.
> 
> (Not sure if this is a bug or just wishlist, filing as normal as apt
> and friends seem to work just fine with this Packages file.)

This is actually a bug in the lexer. Debian fields names are indeed allowed to
have all kind of wired characters : 

"The field name is composed of US-ASCII characters excluding control
characters, space, and colon (i.e., characters in the ranges 33-57 and 59-126,
inclusive). Field names must not begin with the comment character, #, nor with
the hyphen character, -. "

I'll fix this in the next release.

p


Reply to: