summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthias Lisin <ml@visu.li>2022-02-21 02:32:25 +0100
committerMatthias Lisin <ml@visu.li>2022-02-21 02:35:26 +0100
commit5fa87e9651074e8b78f632e43f0c2001a27f5b60 (patch)
tree1cd98e5a022912eff44fce74c88c28b07b5ba898 /tools
parentenv-util: replace unsetenv_erase() by new getenv_steal_erase() helper (diff)
downloadsystemd-5fa87e9651074e8b78f632e43f0c2001a27f5b60.tar.xz
systemd-5fa87e9651074e8b78f632e43f0c2001a27f5b60.zip
tools: adjust re.match to recent gpt.h additions
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
Diffstat (limited to 'tools')
-rw-r--r--tools/list-discoverable-partitions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/list-discoverable-partitions.py b/tools/list-discoverable-partitions.py
index 57b99b2a49..500c896c9d 100644
--- 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