]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/gen-lockedsig-cache: Don't list paths which don't exist
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Oct 2019 16:06:00 +0000 (17:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Oct 2019 21:28:29 +0000 (22:28 +0100)
This avoids failures seen on the autobuilder when generating eSDKs
and release sstate copies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/gen-lockedsig-cache

index 48cb67112fd0583bace4036aff83ef84734ab046..9bfae9d8323bd16d69a833485f954f4e9f37c7a2 100755 (executable)
@@ -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: