[bitbake-devel] [PATCH 1/2] hob: clear out temporary file list after deleting
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Sep 5 12:30:10 UTC 2011
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.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
bitbake/lib/bb/ui/hob.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index c2acada..f2a9ee5 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:
--
1.7.4.1
More information about the bitbake-devel
mailing list