Skip to contentSkip to conversation

scripts/gen-lockedsig-cache: Don't list paths which don't exist

PATCH New Richard Purdie 1 participant 1 message Oct 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/gen-lockedsig-cache | 2 ++
 1 file changed, 2 insertions(+)
scripts/gen-lockedsig-cache +2 -0
index 48cb67112fd..9bfae9d8323 100755
@@ -24,6 +24,8 @@ def extract_sha(filename):
 # a map from hash to list of file with that hash
 def map_sha_to_files(dir_, prefix, sha_map):
     sstate_prefix_path = dir_ + '/' + prefix + '/'
+    if not os.path.exists(sstate_prefix_path):
+        return
     sstate_files = os.listdir(sstate_prefix_path)
     for f in sstate_files:
         try:
Signature · 1 line
2.20.1