From 94e2a104ece703d8fa6046ea0fcf9a51ae1930e3 Mon Sep 17 00:00:00 2001 From: Liming An Date: Thu, 2 Aug 2012 19:06:01 +0800 Subject: bitbake: Hob: log for Hob and allow users to show logs after successful build If users build images in Hob, record logs and allow users to retrieve the lo after successful build. The logs are generated if and only if: - users do "just bake" - users do "build image" after "build packages" - users do "build packages" only [YOCTO #1991] (Bitbake rev: 291289787bb042b99f0599babc2d67c220aadb87) Signed-off-by: Shane Wang Signed-off-by: Liming An Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py') diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index a00fcd8eda..540dde0951 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py @@ -390,6 +390,9 @@ class HobHandler(gobject.GObject): def reset_build(self): self.build.reset() + def get_logfile(self): + return self.server.runCommand(["getVariable", "BB_CONSOLELOG"]) + def _remove_redundant(self, string): ret = [] for i in string.split(): -- cgit v1.2.3-54-g00ecf