Patchwork [bitbake-devel] bitbake: hob: create console log directory before writing

login
register
mail settings
Submitter Paul Eggleton
Date Aug. 21, 2012, 3:07 p.m.
Message ID <1345561657-5784-1-git-send-email-paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/35061/
State New
Headers show

Comments

Paul Eggleton - Aug. 21, 2012, 3:07 p.m.
The default value of BB_CONSOLELOG in OE-Core now points to a directory
that might not exist prior to the first build, so ensure it is created
first.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bitbake/lib/bb/ui/crumbs/builder.py |    1 +
 1 file changed, 1 insertion(+)
Richard Purdie - Aug. 22, 2012, 12:57 p.m.
On Tue, 2012-08-21 at 16:07 +0100, Paul Eggleton wrote:
> The default value of BB_CONSOLELOG in OE-Core now points to a directory
> that might not exist prior to the first build, so ensure it is created
> first.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  bitbake/lib/bb/ui/crumbs/builder.py |    1 +
>  1 file changed, 1 insertion(+)

Thanks, merged to master.

Cheers,

Richard

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index cb2338e..611024a 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -1312,6 +1312,7 @@  class Builder(gtk.Window):
 
     def do_log(self, consolelogfile = None):
         if consolelogfile:
+            bb.utils.mkdirhier(os.path.dirname(consolelogfile))
             if self.consolelog:
                 self.logger.removeHandler(self.consolelog)
                 self.consolelog = None