[bitbake-devel] [PATCH 1/2] hob: clear out temporary file list after deleting

Joshua Lock josh at linux.intel.com
Mon Sep 5 16:39:34 UTC 2011


On Mon, 2011-09-05 at 13:30 +0100, Paul Eggleton wrote:
> 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>
Signed-off-by: Joshua Lock <josh 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:

-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre





More information about the bitbake-devel mailing list