summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-09 16:06:00 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-09 21:28:37 (GMT)
commit4964e42e197ed0d58f0c85ab274ddb718ae4262c (patch)
treed8ba76a200df0c2ed7cf0f161bfc2e6a547d6621
parent9acf5a3c2d7bfad4743406bba6b999a43e682ec7 (diff)
downloadpoky-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-xscripts/gen-lockedsig-cache2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache
index 48cb671..9bfae9d 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
25def map_sha_to_files(dir_, prefix, sha_map): 25def 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: