summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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/lib
parent09d78741ea550b70472535ecb66b29559a4cd8b9 (diff)
downloadast2050-yocto-poky-88852a522d032b56f528b1f041ceb2ccb8b27694.zip
ast2050-yocto-poky-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/lib')
-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 76b03cd..38f8a77 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -496,6 +496,7 @@ class MainWindow (gtk.Window):
self.cancel.set_sensitive(False)
for f in self.files_to_clean:
os.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."
if self.handler.building == "image" and self.build_succeeded:
OpenPOWER on IntegriCloud