From 3ce480de274526f2b6723cab9bbc41c42b5c726c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 18 Aug 2010 17:21:40 +0100 Subject: bitbake/runqueue.py: Factor task skipping code into a function Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 86d60fa05..488aa04d0 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1084,6 +1084,13 @@ class RunQueueExecuteTasks(RunQueueExecute): if self.rqdata.taskData.abort: self.rq.state = runQueueCleanUp + def task_skip(self, task): + self.runq_running[task] = 1 + self.runq_buildable[task] = 1 + self.task_complete(task) + self.stats.taskCompleted() + self.stats.taskSkipped() + def execute(self): """ Run the tasks in a queue prepared by rqdata.prepare() @@ -1103,11 +1110,7 @@ class RunQueueExecuteTasks(RunQueueExecute): taskname = self.rqdata.runq_task[task] if self.rq.check_stamp_task(task, taskname): bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.rqdata.get_user_idstring(task))) - self.runq_running[task] = 1 - self.runq_buildable[task] = 1 - self.task_complete(task) - self.stats.taskCompleted() - self.stats.taskSkipped() + self.task_skip(task) continue pid, pipein, pipeout = self.fork_off_task(fn, task, taskname) -- cgit v1.2.3