diff options
author | Valentin Popa <valentin.popa@intel.com> | 2013-12-03 17:52:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-03 17:45:54 +0000 |
commit | c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c (patch) | |
tree | 1ed4d7663929b0ccb80949cfe5b8cc087937466a | |
parent | 0a5fdfbf36d168182480874c6175a33fec603db7 (diff) | |
download | ast2050-yocto-poky-c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c.zip ast2050-yocto-poky-c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c.tar.gz |
bitbake: Hob: check if warnings are related to package build
If warnings come from recipes parsing
and not from package build, 'parent' object
will be None; so don't update the color for it.
[YOCTO #5621]
(Bitbake rev: f9d24f55a5ffa9257e7ba3257be1210687513733)
Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 0a48a6b..16a955d 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py @@ -174,13 +174,13 @@ class RunningBuild (gobject.GObject): color, 0)) - # if there are warnings, mark the task with warning - # color; + # if there are warnings while processing a package + # (parent), mark the task with warning color; # in case there are errors, the updates will be # handled on TaskFailed. - if color == HobColors.WARNING: + if color == HobColors.WARNING and parent: self.model.set(parent, self.model.COL_COLOR, color) - if task: #then we have a parent, and update it's color + if task: #then we have a parent (package), and update it's color self.model.set(self.tasks_to_iter[(package, None)], self.model.COL_COLOR, color) elif isinstance(event, bb.build.TaskStarted): |