From: Paul Eggleton Date: Tue, 21 Aug 2012 15:07:37 +0000 (+0100) Subject: bitbake: bitbake: hob: create console log directory before writing X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a6818eea1d73a66204e4a903300c9794f277efe;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index cb2338e777f..611024aae37 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