summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-08 18:00:13 -0700
committerJoshua Lock <josh@linux.intel.com>2011-09-13 08:30:45 -0700
commit4394e38b038e1bc9845adf01d73363157d98c96d (patch)
treeac2ed1f59e360ad34b19e3f54a0953a2adec7d21
parent39ed18e70e9f3a13b522b4ea02bf6f4bdb7de89c (diff)
downloadbitbake-4394e38b038e1bc9845adf01d73363157d98c96d.tar.gz
hob: correctly handle an exception
It doesn't matter if we can't remove the temprorary file, for some reason, so catch the exception and ignore it. Partially addresses [YOCTO #1468] Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/hob.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index 84df37de7..8d2d1bd32 100644
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -495,7 +495,11 @@ class MainWindow (gtk.Window):
self.back.set_sensitive(True)
self.cancel.set_sensitive(False)
for f in self.files_to_clean:
- os.remove(f)
+ try:
+ os.remove(f)
+ except OSError:
+ pass
+ self.files_to_clean.remove(f)
self.files_to_clean = []
lbl = "<b>Build completed</b>\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build."