validity: update hwdb-check-unsupported.py to filter out unsupported devices

This commit is contained in:
Leonardo Francisco 2026-04-07 23:11:35 -04:00 committed by Leonardo
parent 08ef87a80c
commit 871818eebb

View file

@ -22,6 +22,15 @@ for m in devices_re.finditer(data):
pid = m.group(2)
devices.append((vid, pid))
# TODO:remove when the devices are removed from the wiki unsupported list.
allow = []
allow.append(("06cb", "009a"))
allow.append(("138a", "0090"))
allow.append(("138a", "0097"))
allow.append(("138a", "009d"))
devices = [d for d in devices if d not in allow]
generator = open(os.path.join(os.path.dirname(__file__), '..', 'libfprint', 'fprint-list-udev-hwdb.c')).read()
id_re = re.compile(' { .vid = 0x([a-fA-F0-9]*), .pid = 0x([a-fA-F0-9]*) }')