diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-09-05 13:30:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:16:08 +0100 |
commit | 069d85cde01d14f8da31ad5cbd843a4d99628d42 (patch) | |
tree | 962dfa4c8f6b82ae062db921e74cfeeafc60aaba /lib | |
parent | 73b6ff4654d10baae59d83e8568d58d989e99dd7 (diff) | |
download | bitbake-069d85cde01d14f8da31ad5cbd843a4d99628d42.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.
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 'lib')
-rw-r--r-- | lib/bb/ui/hob.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py index 76b03cdac..38f8a7751 100644 --- a/lib/bb/ui/hob.py +++ b/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: |