summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/hob.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-08 18:00:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-13 21:48:35 +0100
commit684a7c655ba002bb657f93b4976625adde6ba3f7 (patch)
tree44fe7d88029e3f145179668b4034a18adf2a05e9 /bitbake/lib/bb/ui/hob.py
parent58570ec6a57b7e50e72066dc8f459ba9279d1752 (diff)
downloadpoky-684a7c655ba002bb657f93b4976625adde6ba3f7.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] (Bitbake rev: 4394e38b038e1bc9845adf01d73363157d98c96d) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/hob.py')
-rw-r--r--bitbake/lib/bb/ui/hob.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index 84df37de73..8d2d1bd327 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -495,7 +495,11 @@ class MainWindow (gtk.Window):
495 self.back.set_sensitive(True) 495 self.back.set_sensitive(True)
496 self.cancel.set_sensitive(False) 496 self.cancel.set_sensitive(False)
497 for f in self.files_to_clean: 497 for f in self.files_to_clean:
498 os.remove(f) 498 try:
499 os.remove(f)
500 except OSError:
501 pass
502 self.files_to_clean.remove(f)
499 self.files_to_clean = [] 503 self.files_to_clean = []
500 504
501 lbl = "<b>Build completed</b>\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build." 505 lbl = "<b>Build completed</b>\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build."