summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-18 17:21:40 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-19 11:41:44 +0100
commit3ce480de274526f2b6723cab9bbc41c42b5c726c (patch)
tree50cc0806bdfb4cabbd92376dd80b477d8e06657f /bitbake/lib
parent65b068a5f851815eead6b64f366b31fa7dbfe553 (diff)
downloadopenembedded-core-3ce480de274526f2b6723cab9bbc41c42b5c726c.tar.gz
openembedded-core-3ce480de274526f2b6723cab9bbc41c42b5c726c.tar.bz2
openembedded-core-3ce480de274526f2b6723cab9bbc41c42b5c726c.tar.xz
openembedded-core-3ce480de274526f2b6723cab9bbc41c42b5c726c.zip
bitbake/runqueue.py: Factor task skipping code into a function
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py13
1 files changed, 8 insertions, 5 deletions
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)