From 90f8d538007a408c6b2da622c6aa7a6221e71300 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 13 Dec 2011 14:45:41 -0800 Subject: ui/crumbs/runningbuild: handle InvalidTask events The knotty UI just ignores these and so should RunningBuild, if these events aren't handled the UI appears to hang. Fixes [YOCTO #1665] (Bitbake rev: 540ba78075bd525776aa23bf38bee66350c66534) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/runningbuild.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 509590af35..4f609fc622 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py @@ -179,6 +179,10 @@ class RunningBuild (gobject.GObject): # that we need to attach to a task. self.tasks_to_iter[(package, task)] = i + # If we don't handle these the GUI does not proceed + elif isinstance(event, bb.build.TaskInvalid): + return + elif isinstance(event, bb.build.TaskBase): current = self.tasks_to_iter[(package, task)] parent = self.tasks_to_iter[(package, None)] -- cgit v1.2.3-54-g00ecf