From: Matthias Lisin Date: Mon, 21 Feb 2022 01:32:25 +0000 (+0100) Subject: tools: adjust re.match to recent gpt.h additions X-Git-Tag: v251-rc1~254^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fa87e9651074e8b78f632e43f0c2001a27f5b60;p=thirdparty%2Fsystemd.git 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 --- diff --git a/tools/list-discoverable-partitions.py b/tools/list-discoverable-partitions.py index 57b99b2a490..500c896c9dc 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