[oe-commits] [openembedded-core] 01/01: scripts/gen-lockedsig-cache: Don't list paths which don't exist

git at git.openembedded.org git at git.openembedded.org
Wed Oct 9 16:15:38 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c4fa2c4958f742632544dc688d133be926a5a226
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Oct 9 17:06:00 2019 +0100

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/gen-lockedsig-cache | 2 ++
 1 file changed, 2 insertions(+)

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):
 # 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list