Procházet zdrojové kódy

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@linuxfoundation.org>
Richard Purdie před 4 roky
rodič
revize
8ffe6ca984
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      scripts/gen-lockedsig-cache

+ 2 - 0
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: