1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00
systemd/tools
Zbigniew Jędrzejewski-Szmek c0443b97b7 hwdb: add trailing ":*" everywhere
No functional change is intended.
The general pattern of changes:

-usb:v04F3p2B7C*
+usb:v04F3p2B7C:*
This is mostly a clarification, to make the part that makes the usb vXXXXpYYYY
part visually separated. It would only make a difference if we added further
keys with a different number of digits, which is unlikely.

-usb:v0627p0001:*QEMU USB Keyboard*
-usb:v0627p0001:*QEMU USB Mouse*
-usb:v0627p0001:*QEMU USB Tablet*
+usb:v0627p0001:*QEMU USB Keyboard*:*
+usb:v0627p0001:*QEMU USB Mouse*:*
+usb:v0627p0001:*QEMU USB Tablet*:*
Again, only a clarification. We know that ":" will appear somewhere later in
the match key, so anything that matches "…Keyboard*" will also match "…Keyboard*:*".

-evdev:name:ETPS/2 Elantech Touchpad:dmi:*svnASUSTeKComputerInc.:pnN53SV*
+evdev:name:ETPS/2 Elantech Touchpad:dmi:*svnASUSTeKComputerInc.:pnN53SV:*
This makes the match narrower. Previously we would match product "N53SV"
and "N53SV2", "N53SV3", and others. Here we are saying that the ':pn' part must
match exactly. Most of the changes in this patch match this pattern. I made a few
judgement calls and used "pn…*:*" when I wasn't sure if the full pn is included:
-evdev:name:Dell WMI hotkeys:dmi:bvn*:bvr*:bd*:svnDell*:pnPrecision*
+evdev:name:Dell WMI hotkeys:dmi:bvn*:bvr*:bd*:svnDell*:pnPrecision*:*

-evdev:name:Cypress APA Trackpad ?cyapa?:dmi:*:svnHewlett-Packard*:pnFalco*:
+evdev:name:Cypress APA Trackpad ?cyapa?:dmi:*:svnHewlett-Packard*:pnFalco*:*
This more like the "QEMU" example above, since all dmi strings end in ":", so
anything which matches the old version will also match the new version.

-evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGateway*:pnA0A1*:pvr*
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGateway*:pnA0A1*:*

I replaced trailing ":pvr*" by ":*". This makes no functional difference because
we expect "pvr" to always appear in the dmi string. This makes patterns shorter.

-evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pn*
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pn*:*

OTOH, ":pn*" is kept. This is because almost patterns include ":pn*", and if we
skip it, we should make it clear that this is on purpose, that we really want to
match any product name.

The python script to generate autosuspend rules is updated to use ":*" too.

Inspired by https://github.com/systemd/systemd/pull/17281#discussion_r501489750.
2020-10-15 18:01:32 +02:00
..
chromiumos hwdb: update chromiumos autosuspend rules 2020-10-15 13:29:01 +02:00
add-git-hook.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
autosuspend-update.sh meson: drop "meson-" prefix from various helper script filenames 2020-05-07 13:57:48 +02:00
catalog-report.py tree-wide: drop header for emacs from python scripts 2018-12-10 03:17:33 +09:00
check-api-docs.sh meson: drop "meson-" prefix from various helper script filenames 2020-05-07 13:57:48 +02:00
check-compilation.sh meson: drop "meson-" prefix from various helper script filenames 2020-05-07 13:57:48 +02:00
check-directives.sh treewide: more portable bash shebangs 2020-03-05 17:27:07 +01:00
check-help.sh meson: drop "meson-" prefix from various helper script filenames 2020-05-07 13:57:48 +02:00
check-includes.pl Drop "Copyright abandonded" header 2018-07-24 11:14:44 +02:00
choose-default-locale.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
coverity.sh treewide: more portable bash shebangs 2020-03-05 17:27:07 +01:00
find-build-dir.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
find-double-newline.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
find-tabs.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
gdb-sd_dump_hashmaps.py gdb: make output a bit nicer 2020-05-30 11:40:53 +02:00
generate-gperfs.py tools: add one more SPDX license header 2018-12-10 03:08:52 +09:00
git-contrib.sh git-contrib: simplify implementation a bit 2020-07-08 17:31:43 +02:00
hwdb-update.sh meson: drop "meson-" prefix from various helper script filenames 2020-05-07 13:57:48 +02:00
make-autosuspend-rules.py hwdb: add trailing ":*" everywhere 2020-10-15 18:01:32 +02:00
make-directive-index.py man: put all pages which mention a specifier in the index 2020-05-07 16:30:10 +02:00
make-man-index.py tools/make-man-index: fix purpose text that contains tags 2020-08-17 18:32:51 +02:00
meson-apply-m4.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
meson-build.sh meson: use same compilers to build fuzzers 2018-10-09 11:54:10 +02:00
meson-make-symlink.sh test: move TEST-08-ISSUE-2730 setup to static files and meson scripts 2020-03-28 11:46:47 +01:00
meson-vcs-tag.sh treewide: more portable bash shebangs 2020-03-05 17:27:07 +01:00
oss-fuzz.sh oss-fuzz: turn on the pointer-overflow check 2020-05-21 08:52:18 +02:00
syscall-names-update.sh meson: add syscall-names-update target 2020-08-19 15:30:24 +02:00
update-dbus-docs.py update-dbus-docs: skip test if python is too old 2020-09-20 13:15:44 +02:00
update-man-rules.py update-man-rules: properly filter out directives index again 2020-06-13 17:31:59 +02:00
xml_helper.py tree-wide: drop header for emacs from python scripts 2018-12-10 03:17:33 +09:00