From: Zbigniew Jędrzejewski-Szmek Date: Tue, 3 Nov 2020 13:26:51 +0000 (+0100) Subject: Revert "parse_hwdb: enforce the ":*" suffix" X-Git-Tag: v247-rc2~30^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a21ac934a1adc773ed95d3a9bc068d4f36eff363;p=thirdparty%2Fsystemd.git Revert "parse_hwdb: enforce the ":*" suffix" This reverts commit ad2d8e61eeab27f3e36572c7981362227357f420. --- 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