summaryrefslogtreecommitdiffstats
path: root/bitbake
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
parent65b068a5f851815eead6b64f366b31fa7dbfe553 (diff)
downloadpoky-3ce480de274526f2b6723cab9bbc41c42b5c726c.tar.gz
bitbake/runqueue.py: Factor task skipping code into a function
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-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 86d60fa05b..488aa04d06 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1084,6 +1084,13 @@ class RunQueueExecuteTasks(RunQueueExecute):
1084 if self.rqdata.taskData.abort: 1084 if self.rqdata.taskData.abort:
1085 self.rq.state = runQueueCleanUp 1085 self.rq.state = runQueueCleanUp
1086 1086
1087 def task_skip(self, task):
1088 self.runq_running[task] = 1
1089 self.runq_buildable[task] = 1
1090 self.task_complete(task)
1091 self.stats.taskCompleted()
1092 self.stats.taskSkipped()
1093
1087 def execute(self): 1094 def execute(self):
1088 """ 1095 """
1089 Run the tasks in a queue prepared by rqdata.prepare() 1096 Run the tasks in a queue prepared by rqdata.prepare()
@@ -1103,11 +1110,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
1103 taskname = self.rqdata.runq_task[task] 1110 taskname = self.rqdata.runq_task[task]
1104 if self.rq.check_stamp_task(task, taskname): 1111 if self.rq.check_stamp_task(task, taskname):
1105 bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.rqdata.get_user_idstring(task))) 1112 bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.rqdata.get_user_idstring(task)))
1106 self.runq_running[task] = 1 1113 self.task_skip(task)
1107 self.runq_buildable[task] = 1
1108 self.task_complete(task)
1109 self.stats.taskCompleted()
1110 self.stats.taskSkipped()
1111 continue 1114 continue
1112 1115
1113 pid, pipein, pipeout = self.fork_off_task(fn, task, taskname) 1116 pid, pipein, pipeout = self.fork_off_task(fn, task, taskname)