From: Richard Purdie Date: Wed, 9 Oct 2019 16:06:00 +0000 (+0100) Subject: scripts/gen-lockedsig-cache: Don't list paths which don't exist X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13077 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ffe6ca984e034976322beea9b16c92d46708d15;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache index 48cb67112fd..9bfae9d8323 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: