From patchwork Fri Jan 13 08:30:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 9/9] runqueue: fire sceneQueueTaskStarted event when a setscene queue starts Date: Fri, 13 Jan 2012 08:30:43 -0000 From: Dongxiao Xu X-Patchwork-Id: 19273 Message-Id: <0729e8527a9760dca10b3aaad0d8ac9764c726ee.1326442655.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org The current code prints a log when a setscene task starts, therefore the progressbar in hob will not receive it. Use a sceneQueueTaskStarted event instead. Signed-off-by: Shane Wang Signed-off-by: Dongxiao Xu --- lib/bb/runqueue.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 0e83d05..0ba414f 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1619,6 +1619,9 @@ class RunQueueExecuteScenequeue(RunQueueExecute): self.task_skip(task) return True + startevent = sceneQueueTaskStarted(task, self.stats, self.rq) + bb.event.fire(startevent, self.cfgData) + pid, pipein, pipeout = self.fork_off_task(fn, realtask, taskname) self.build_pids[pid] = task @@ -1686,6 +1689,13 @@ class runQueueTaskStarted(runQueueEvent): runQueueEvent.__init__(self, task, stats, rq) self.noexec = noexec +class sceneQueueTaskStarted(runQueueTaskStarted): + """ + Event notifing a setscene task was started + """ + def __init__(self, task, stats, rq, noexec=False): + runQueueTaskStarted.__init__(self, task, stats, rq, noexec) + class runQueueTaskFailed(runQueueEvent): """ Event notifing a task failed