diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-09 17:06:00 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-09 22:28:37 +0100 |
| commit | 4964e42e197ed0d58f0c85ab274ddb718ae4262c (patch) | |
| tree | d8ba76a200df0c2ed7cf0f161bfc2e6a547d6621 | |
| parent | 9acf5a3c2d7bfad4743406bba6b999a43e682ec7 (diff) | |
| download | poky-4964e42e197ed0d58f0c85ab274ddb718ae4262c.tar.gz | |
scripts/gen-lockedsig-cache: Don't list paths which don't exist
This avoids failures seen on the autobuilder when generating eSDKs
and release sstate copies.
(From OE-Core rev: 8ffe6ca984e034976322beea9b16c92d46708d15)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | scripts/gen-lockedsig-cache | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache index 48cb67112f..9bfae9d832 100755 --- a/scripts/gen-lockedsig-cache +++ b/scripts/gen-lockedsig-cache | |||
| @@ -24,6 +24,8 @@ def extract_sha(filename): | |||
| 24 | # a map from hash to list of file with that hash | 24 | # a map from hash to list of file with that hash |
| 25 | def map_sha_to_files(dir_, prefix, sha_map): | 25 | def map_sha_to_files(dir_, prefix, sha_map): |
| 26 | sstate_prefix_path = dir_ + '/' + prefix + '/' | 26 | sstate_prefix_path = dir_ + '/' + prefix + '/' |
| 27 | if not os.path.exists(sstate_prefix_path): | ||
| 28 | return | ||
| 27 | sstate_files = os.listdir(sstate_prefix_path) | 29 | sstate_files = os.listdir(sstate_prefix_path) |
| 28 | for f in sstate_files: | 30 | for f in sstate_files: |
| 29 | try: | 31 | try: |
