summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/devtool/standard.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 893226578a..d561e40115 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -308,7 +308,14 @@ def _check_preserve(config, recipename):
308 splitline = line.rstrip().split('|') 308 splitline = line.rstrip().split('|')
309 if splitline[0] == recipename: 309 if splitline[0] == recipename:
310 removefile = os.path.join(config.workspace_path, splitline[1]) 310 removefile = os.path.join(config.workspace_path, splitline[1])
311 md5 = bb.utils.md5_file(removefile) 311 try:
312 md5 = bb.utils.md5_file(removefile)
313 except IOError as err:
314 if err.errno == 2:
315 # File no longer exists, skip it
316 continue
317 else:
318 raise
312 if splitline[2] != md5: 319 if splitline[2] != md5:
313 bb.utils.mkdirhier(preservepath) 320 bb.utils.mkdirhier(preservepath)
314 preservefile = os.path.basename(removefile) 321 preservefile = os.path.basename(removefile)