Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for a uniq-only match #678

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

whot
Copy link
Member

@whot whot commented May 3, 2024

First commit extracted from @JoseExposito's patchset in #659 but I think this needs a behaviour change to allow for uniq-only matches to take precedence over name matches, see #659 (comment)

Draft because it's untested and to test this we should add #677 and #676 first so we can test this properly.

@whot whot force-pushed the wip/uniq-only-match branch from 3132b2b to fbaac50 Compare May 7, 2024 03:42
@whot whot marked this pull request as ready for review May 7, 2024 03:49
@whot
Copy link
Member Author

whot commented May 7, 2024

With tests now, how awesome is that?! :)

@JoseExposito
Copy link
Contributor

Pretty awesome! I trust you on the automated testing side, but the uniq matching looks great.

JoseExposito and others added 2 commits May 8, 2024 18:11
This allows for DeviceMatch=usb:1234:5678||someuniq
Previously we would match for name first, then uniq. But the name
matches are less reliable than uniq matches so where we can match for
uniq we should prefer that.

This avoids the case where where a name that applies to multiple
devices takes precedence over a more precise uniq match.
@whot whot force-pushed the wip/uniq-only-match branch from 135a885 to 4d533f3 Compare May 8, 2024 08:11
@whot whot merged commit 4a84563 into linuxwacom:master May 8, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants