From: Zbigniew Jędrzejewski-Szmek Date: Fri, 17 Jul 2020 05:44:10 +0000 (+0200) Subject: hwdb: allow spaces in usb: matches and similar patterns X-Git-Tag: v246-rc2~51^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=457763aa0393a9f11e30071bb3794caf1a4f2f64;p=thirdparty%2Fsystemd.git hwdb: allow spaces in usb: matches and similar patterns In the past we didn't have any matches like that, so the parser was stricter than necessary, but now we have, so allow that. --- diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 8e1b5fdafa4..c9851ca64c9 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -87,7 +87,7 @@ def hwdb_grammar(): for category, conn in TYPES.items()) matchline_typed = Combine(prefix + Word(printables + ' ' + '®')) - matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables)) + matchline_general = Combine(Or(GENERAL_MATCHES) + ':' + Word(printables + ' ' + '®')) matchline = (matchline_typed | matchline_general) + EOL propertyline = (White(' ', exact=1).suppress() +