From: Paul Barker Date: Sat, 28 Mar 2026 09:49:58 +0000 (+0000) Subject: checklayer: Really fix regex in get_signatures X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=225923f3bfec8e793ce1ddb547aef53fcfbc0778;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git checklayer: Really fix regex in get_signatures The previous attempt to fix the regex in get_signatures was only a partial success. We should just be comparing unihash values, inclusion of the taskhash value in our comparison adds no benefit. Inclusion of the task hash also results in invalid bitbake-diffsigs commands being recommended if there are conflicting signatures. Fixes: a2f7052cf832 ("checklayer: Fix regex in get_signatures") Signed-off-by: Paul Barker Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index 15459b6e04..f9ba44d08d 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py @@ -324,7 +324,7 @@ def get_signatures(builddir, failsafe=False, machine=None, extravars=None): else: raise - sig_regex = re.compile(r"^(?P[^:]*:[^:]*):(?P.*) .$") + sig_regex = re.compile(r"^(?P[^:]*:[^:]*)(:(?P[^:]*))?:(?P.*) .$") tune_regex = re.compile(r"(^|\s)SIGGEN_LOCKEDSIGS_t-(?P\S*)\s*=\s*") current_tune = None with open(sigs_file, 'r') as f: