From a21ac934a1adc773ed95d3a9bc068d4f36eff363 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 3 Nov 2020 14:26:51 +0100 Subject: [PATCH] Revert "parse_hwdb: enforce the ":*" suffix" This reverts commit ad2d8e61eeab27f3e36572c7981362227357f420. --- hwdb.d/parse_hwdb.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 4174c7598ff..ed07224b3cc 100755 --- a/hwdb.d/parse_hwdb.py +++ b/hwdb.d/parse_hwdb.py @@ -202,9 +202,8 @@ def check_matches(groups): except ParseBaseException as e: error('Pattern {!r} is invalid: {}', rest, e) continue - - if not rest.endswith(':*'): - error("pattern {!r} does not end with ':*'", match) + if rest[-1] not in '*:': + error('pattern {} does not end with "*" or ":"', match) matches.sort() prev = None -- 2.47.3