Patchwork [bitbake-devel] hob: hob was freezing because it doesn't receives well the log file

login
register
mail settings
Submitter Cristiana Voicu
Date Nov. 8, 2012, 1:03 p.m.
Message ID <1352379822-1505-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/38829/
State New
Headers show

Comments

Cristiana Voicu - Nov. 8, 2012, 1:03 p.m.
-after pressing "build image" button, hob was freezing because it didn't
receive well the log file

[YOCTO #3398]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Chris Larson - Nov. 8, 2012, 2:11 p.m.
On Thu, Nov 8, 2012 at 6:03 AM, Cristiana Voicu
<cristiana.voicu@intel.com> wrote:
> -after pressing "build image" button, hob was freezing because it didn't
> receive well the log file
>
> [YOCTO #3398]
> Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
> ---
>  bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
> index 5026bf7..4b908f9 100644
> --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
> +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
> @@ -420,7 +420,7 @@ class HobHandler(gobject.GObject):
>          self.build.reset()
>
>      def get_logfile(self):
> -        return self.server.runCommand(["getVariable", "BB_CONSOLELOG"])
> +        return self.server.runCommand(["getVariable", "BB_CONSOLELOG"])[0]

Oops, sorry about this. I thought I fixed all the runCommand calls,
but must have missed one.

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 5026bf7..4b908f9 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -420,7 +420,7 @@  class HobHandler(gobject.GObject):
         self.build.reset()
 
     def get_logfile(self):
-        return self.server.runCommand(["getVariable", "BB_CONSOLELOG"])
+        return self.server.runCommand(["getVariable", "BB_CONSOLELOG"])[0]
 
     def _remove_redundant(self, string):
         ret = []