summaryrefslogtreecommitdiffstats
path: root/bitbake
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
parent58570ec6a57b7e50e72066dc8f459ba9279d1752 (diff)
downloadast2050-yocto-poky-684a7c655ba002bb657f93b4976625adde6ba3f7.zip
ast2050-yocto-poky-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')
-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 84df37d..8d2d1bd 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/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."
OpenPOWER on IntegriCloud