teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0279-test-frequency-in-mouse-DPI-is-optional.patch

8d419f
From 3821f3570e28a6f169bf539086882b34a6a7beb8 Mon Sep 17 00:00:00 2001
8d419f
From: Yu Watanabe <watanabe.yu+github@gmail.com>
8d419f
Date: Fri, 28 Jan 2022 11:08:43 +0900
8d419f
Subject: [PATCH] test: frequency in mouse DPI is optional
8d419f
8d419f
Prompted by #22278.
8d419f
8d419f
(cherry picked from commit e912326e05cf753ddb703be0666336ee3386d6e0)
8d419f
8d419f
Related: #2087778
8d419f
---
8d419f
 hwdb.d/parse_hwdb.py | 2 +-
8d419f
 1 file changed, 1 insertion(+), 1 deletion(-)
8d419f
8d419f
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
8d419f
index 0268bf9580..aef0331ace 100755
8d419f
--- a/hwdb.d/parse_hwdb.py
8d419f
+++ b/hwdb.d/parse_hwdb.py
8d419f
@@ -121,7 +121,7 @@ def hwdb_grammar():
8d419f
 def property_grammar():
8d419f
     ParserElement.setDefaultWhitespaceChars(' ')
8d419f
 
8d419f
-    dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Suppress('@') + INTEGER('HZ'))('SETTINGS*')
8d419f
+    dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Optional(Suppress('@') + INTEGER('HZ')))('SETTINGS*')
8d419f
     mount_matrix_row = SIGNED_REAL + ',' + SIGNED_REAL + ',' + SIGNED_REAL
8d419f
     mount_matrix = Group(mount_matrix_row + ';' + mount_matrix_row + ';' + mount_matrix_row)('MOUNT_MATRIX')
8d419f
     xkb_setting = Optional(Word(alphanums + '+-/@._'))