]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools: adjust re.match to recent gpt.h additions
authorMatthias Lisin <ml@visu.li>
Mon, 21 Feb 2022 01:32:25 +0000 (02:32 +0100)
committerMatthias 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

index 57b99b2a4908daa588cc02beb08088910ae94bd4..500c896c9dc376d4e0a0221f481fc5d37876ac62 100644 (file)
@@ -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