bitbake runqueue.py: Improve the progress indicator by skipping tasks that have already run before starting the build rather than during it

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2423 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2007-08-09 10:51:58 +00:00
parent 24909e870f
commit 6e909eb80e

View File

@ -482,6 +482,18 @@ class RunQueue:
def sigint_handler(signum, frame):
raise KeyboardInterrupt
# Find any tasks with current stamps and remove them from the queue
for task1 in range(len(self.runq_fnid)):
task = self.prio_map[task1]
fn = self.taskData.fn_index[self.runq_fnid[task]]
taskname = self.runq_task[task]
if bb.build.stamp_is_current(taskname, self.dataCache, fn):
bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.get_user_idstring(task)))
self.runq_running[task] = 1
self.task_complete(task)
self.stats.taskCompleted()
self.stats.taskSkipped()
while True:
task = self.get_next_task()
if task is not None: