parse_hwdb: bail with an error if no matches or groups are detected
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Oct 2019 12:21:26 +0000 (14:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Oct 2019 07:48:23 +0000 (09:48 +0200)
commitf3c80bc01e5e7f6f882eb5d78f9e8e780211a0f8
tree6a79d80b0f8311281df42933ebe32b3e83c3da1a
parent4f10b80786e8baa1399b6de6111d5b3a16bf99ba
parse_hwdb: bail with an error if no matches or groups are detected

pyparsing sometimes changes behaviour and stops giving matches. This should
allow us to detect such scenario. With this change, parse_hwdb fails with
pyparsing 2.4 on F31.
hwdb.d/parse_hwdb.py