]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb: fix parser to work with newer pyparsing
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 10:17:51 +0000 (12:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 16:15:05 +0000 (18:15 +0200)
commitf73d6895872cb9caffc523e1eddc53c9b98cfdec
tree1741cac0e68756ae43a34cec30a6eb61fe322fdf
parent88a65c936ed805ec1914477519c36678b6f2daec
hwdb: fix parser to work with newer pyparsing

The handling of whitespace in pyparsing is a bother. There's some
global state, and per-element state, and it's hard to get a handle on
things. With python3-pyparsing-2.4.7-10.fc36.noarch the grammar would
not match. After handling of tabs was fixed to not accept duplicate tabs,
the grammar passes.

It seems that the entry for usb:v8087p8087*
was generated incorrectly because we treated the interface line
(with two TABs) as a device line (with one TAB).
hwdb.d/20-usb-vendor-model.hwdb
hwdb.d/ids_parser.py