diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-02 16:39:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:25:42 +0100 |
commit | 38653d64d2580fbe99441cf12b5abca6e563c621 (patch) | |
tree | b8cff7c4b6baf3403fd8da8fb605762011a87be8 /bitbake | |
parent | c0cb486a3965fca361342adcf9b936fc0ff9263a (diff) | |
download | poky-38653d64d2580fbe99441cf12b5abca6e563c621.tar.gz |
ui/crumbs/runningbuild: mask run_buildstats failure
The buildstats handler causes an exception with: "'NoneType' object has no
attribute 'startswith'" early a build via hob, leaving a glaring red row
which means nothing to the user.
Mask this error until such a time as we have opportunity to correctly
diagnose and fix the root problem.
Workaround fix for [YOCTO #1433]
(Bitbake rev: b0cce5b52a20c0dad5ec0c4053f437cae89b6137)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 97d1ebdd6f..247ed5d5af 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -91,6 +91,12 @@ class RunningBuild (gobject.GObject): | |||
91 | parent = self.tasks_to_iter[(package, task)] | 91 | parent = self.tasks_to_iter[(package, task)] |
92 | 92 | ||
93 | if(isinstance(event, logging.LogRecord)): | 93 | if(isinstance(event, logging.LogRecord)): |
94 | # FIXME: this is a hack! More info in Yocto #1433 | ||
95 | # http://bugzilla.pokylinux.org/show_bug.cgi?id=1433, temporarily | ||
96 | # mask the error message as it's not informative for the user. | ||
97 | if event.msg.startswith("Execution of event handler 'run_buildstats' failed"): | ||
98 | return | ||
99 | |||
94 | if (event.levelno < logging.INFO or | 100 | if (event.levelno < logging.INFO or |
95 | event.msg.startswith("Running task")): | 101 | event.msg.startswith("Running task")): |
96 | return # don't add these to the list | 102 | return # don't add these to the list |