Patchwork [bitbake-devel] knotty: ensure that directory for BB_CONSOLELOG exists before using it

login
register
mail settings
Submitter Martin Jansa
Date July 30, 2012, 11:11 a.m.
Message ID <1343646706-15732-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/33283/
State Accepted
Commit 1e06d8012868ba5a31503dc99cbf18570be629d9
Headers show

Comments

Martin Jansa - July 30, 2012, 11:11 a.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 lib/bb/ui/knotty.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Richard Purdie - Aug. 2, 2012, 4:05 p.m.
On Mon, 2012-07-30 at 13:11 +0200, Martin Jansa wrote:
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  lib/bb/ui/knotty.py |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 0167416..9f51823 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -119,6 +119,7 @@  def main(server, eventHandler, tf = TerminalFilter):
     console.setFormatter(format)
     logger.addHandler(console)
     if consolelogfile:
+        bb.utils.mkdirhier(os.path.dirname(consolelogfile))
         consolelog = logging.FileHandler(consolelogfile)
         bb.msg.addDefaultlogFilter(consolelog)
         consolelog.setFormatter(format)