bitbake: 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 rev: 660821769b9dfb89086291ffc835e9b5444509be)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2012-08-21 16:07:37 +01:00 committed by Richard Purdie
parent bf64b6ec39
commit 2a6818eea1
1 changed files with 1 additions and 0 deletions

View File

@ -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