diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-lockedsig-cache | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache index 9bfae9d832..6a7d285910 100755 --- a/scripts/gen-lockedsig-cache +++ b/scripts/gen-lockedsig-cache | |||
@@ -78,11 +78,18 @@ files = set() | |||
78 | sstate_content_cache = {} | 78 | sstate_content_cache = {} |
79 | for s in sigs: | 79 | for s in sigs: |
80 | prefix = s[:2] | 80 | prefix = s[:2] |
81 | prefix2 = s[2:4] | ||
81 | if prefix not in sstate_content_cache: | 82 | if prefix not in sstate_content_cache: |
82 | sstate_content_cache[prefix] = build_sha_cache(prefix) | 83 | sstate_content_cache[prefix] = build_sha_cache(prefix) |
83 | 84 | if prefix2 not in sstate_content_cache[prefix]: | |
84 | for f in sstate_content_cache[prefix][s]: | 85 | sstate_content_cache[prefix][prefix2] = build_sha_cache(prefix + "/" + prefix2) |
85 | files.add(f) | 86 | |
87 | if s in sstate_content_cache[prefix]: | ||
88 | for f in sstate_content_cache[prefix][s]: | ||
89 | files.add(f) | ||
90 | if s in sstate_content_cache[prefix][prefix2]: | ||
91 | for f in sstate_content_cache[prefix][prefix2][s]: | ||
92 | files.add(f) | ||
86 | 93 | ||
87 | elapsed = time.perf_counter() - start_time | 94 | elapsed = time.perf_counter() - start_time |
88 | print("Gathering file list took %.1fs" % elapsed) | 95 | print("Gathering file list took %.1fs" % elapsed) |