summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-09-05 13:30:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-05 20:25:43 +0100
commit88852a522d032b56f528b1f041ceb2ccb8b27694 (patch)
tree88e04d0ecdd63b4779fc41f1e765b4bde7e9ed5e /bitbake
parent09d78741ea550b70472535ecb66b29559a4cd8b9 (diff)
downloadpoky-88852a522d032b56f528b1f041ceb2ccb8b27694.tar.gz
hob: clear out temporary file list after deleting
If you don't clear out files_to_clean after the files get deleted and then you run a second build, it will try to delete the files from the first build and you will get a "No such file or directory" error. (Bitbake rev: 069d85cde01d14f8da31ad5cbd843a4d99628d42) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> 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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index 76b03cdac6..38f8a7751a 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -496,6 +496,7 @@ class MainWindow (gtk.Window):
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 os.remove(f)
499 self.files_to_clean = []
499 500
500 lbl = "<b>Build completed</b>\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build." 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."
501 if self.handler.building == "image" and self.build_succeeded: 502 if self.handler.building == "image" and self.build_succeeded: