projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e99ca14
)
tools: adjust re.match to recent gpt.h additions
author
Matthias Lisin
<ml@visu.li>
Mon, 21 Feb 2022 01:32:25 +0000
(
02:32
+0100)
committer
Matthias Lisin
<ml@visu.li>
Mon, 21 Feb 2022 01:35:26 +0000
(
02:35
+0100)
with addition of SD_ID128_MAKE_UUID_STR entries to src/shared/gpt.h the tool
failed halfway due to falsly matching the new entries
tools/list-discoverable-partitions.py
patch
|
blob
|
history
diff --git
a/tools/list-discoverable-partitions.py
b/tools/list-discoverable-partitions.py
index 57b99b2a4908daa588cc02beb08088910ae94bd4..500c896c9dc376d4e0a0221f481fc5d37876ac62 100644
(file)
--- a/
tools/list-discoverable-partitions.py
+++ b/
tools/list-discoverable-partitions.py
@@
-142,7
+142,7
@@
DESCRIPTIONS = {
def extract(file):
for line in file:
# print(line)
- m = re.match(r'^#define\s+GPT_(.*SD_ID128_MAKE
.*
)', line)
+ m = re.match(r'^#define\s+GPT_(.*SD_ID128_MAKE
\(.*\)
)', line)
if not m:
continue