mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
ukify: fix parsing uname version with '+'
Debian started using '+' in the kernel uname version, which fails the regex in ukify. Fix it.
This commit is contained in:
@@ -310,7 +310,7 @@ class UkifyConfig:
|
||||
class Uname:
|
||||
# This class is here purely as a namespace for the functions
|
||||
|
||||
VERSION_PATTERN = r'(?P<version>[a-z0-9._-]+) \([^ )]+\) (?:#.*)'
|
||||
VERSION_PATTERN = r'(?P<version>[a-z0-9._+-]+) \([^ )]+\) (?:#.*)'
|
||||
|
||||
NOTES_PATTERN = r'^\s+Linux\s+0x[0-9a-f]+\s+OPEN\n\s+description data: (?P<version>[0-9a-f ]+)\s*$'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user