]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sstate-cache-management: fix regex for 'sigdata' stamp files
authorAndré Draszik <andre.draszik@linaro.org>
Fri, 16 Feb 2024 10:45:51 +0000 (10:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Feb 2024 18:17:48 +0000 (18:17 +0000)
Given file names like
    6.4.do_fetch.sigdata.821b6c62f9f2bd8b7e1378656b8319697a21f6f6e4a351f98dc325a18ef7ed0f,
I'm pretty sure we want to match the dot here, not any character.

Fixes: 2fa1b25d7485 ("sstate-cache-management: Rewrite in python") in oe-core
Fixes: b723fcaac52f ("sstate-cache-management: Rewrite in python") in poky
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/sstate-cache-management.py

index 09b7aa2aefd860a541206c40d9348f9b58bd39ab..d3f600bd28f63ab4ff48d6acb714c847fb9be7a2 100755 (executable)
@@ -147,7 +147,7 @@ def remove_by_stamps(args, paths):
     for stamps_dir in args.stamps_dir:
         stamps_path = Path(stamps_dir)
         assert stamps_path.is_dir()
-        re_sigdata = re.compile(r"do_.*.sigdata\.([^.]*)")
+        re_sigdata = re.compile(r"do_.*\.sigdata\.([^.]*)")
         all_sums |= set(
             [
                 re_sigdata.search(x.parts[-1]).group(1)