Skip to contentSkip to conversation

bitbake: hob: create console log directory before writing

PATCH In review Paul Eggleton 2 participants 2 messages Aug 21, 2012 – Aug 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: hob: create console log directory before writing

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.

---
 bitbake/lib/bb/ui/crumbs/builder.py |    1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/ui/crumbs/builder.py +1 -0
index cb2338e..611024a 100755
@@ -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
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Paul Eggleton

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.

---
 bitbake/lib/bb/ui/crumbs/builder.py |    1 +
 1 file changed, 1 insertion(+)

Thanks, merged to master.

Cheers,

Richard