From 88852a522d032b56f528b1f041ceb2ccb8b27694 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 5 Sep 2011 13:30:10 +0100 Subject: 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 Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/hob.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake') 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): self.cancel.set_sensitive(False) for f in self.files_to_clean: os.remove(f) + self.files_to_clean = [] lbl = "Build completed\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: -- cgit v1.2.3-54-g00ecf