diff options
author | André Draszik <andre.draszik@linaro.org> | 2024-02-16 10:45:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-17 18:19:19 +0000 |
commit | 0684f971c351a88bac7b9c7bb48864bc4adfb4d7 (patch) | |
tree | cad643499fc27c324d0bc312f35b3930d4d41407 /scripts | |
parent | 2cdeadd1ff5f017f34244e78d4c9136e5e498099 (diff) | |
download | poky-0684f971c351a88bac7b9c7bb48864bc4adfb4d7.tar.gz |
sstate-cache-management: fix regex for 'sigdata' stamp files
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
(From OE-Core rev: 64281de7e352aaf48aa8c60b68633c54471fe353)
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sstate-cache-management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sstate-cache-management.py b/scripts/sstate-cache-management.py index 09b7aa2aef..d3f600bd28 100755 --- a/scripts/sstate-cache-management.py +++ b/scripts/sstate-cache-management.py | |||
@@ -147,7 +147,7 @@ def remove_by_stamps(args, paths): | |||
147 | for stamps_dir in args.stamps_dir: | 147 | for stamps_dir in args.stamps_dir: |
148 | stamps_path = Path(stamps_dir) | 148 | stamps_path = Path(stamps_dir) |
149 | assert stamps_path.is_dir() | 149 | assert stamps_path.is_dir() |
150 | re_sigdata = re.compile(r"do_.*.sigdata\.([^.]*)") | 150 | re_sigdata = re.compile(r"do_.*\.sigdata\.([^.]*)") |
151 | all_sums |= set( | 151 | all_sums |= set( |
152 | [ | 152 | [ |
153 | re_sigdata.search(x.parts[-1]).group(1) | 153 | re_sigdata.search(x.parts[-1]).group(1) |