mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-02-24 15:50:48 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
7d48f6d4aa
@ -78,10 +78,13 @@ def check_udev_rules():
|
||||
|
||||
# Collect all rules from the config files
|
||||
for rule_file in udev_rules:
|
||||
for line in rule_file.read_text(encoding='utf-8').split('\n'):
|
||||
line = line.strip()
|
||||
if not line.startswith("#") and len(line):
|
||||
current_rules.add(line)
|
||||
try:
|
||||
for line in rule_file.read_text(encoding='utf-8').split('\n'):
|
||||
line = line.strip()
|
||||
if not line.startswith("#") and len(line):
|
||||
current_rules.add(line)
|
||||
except PermissionError:
|
||||
cli.log.debug("Failed to read: %s", rule_file)
|
||||
|
||||
# Check if the desired rules are among the currently present rules
|
||||
for bootloader, rules in desired_rules.items():
|
||||
|
Loading…
Reference in New Issue
Block a user