From 6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 9 Aug 2007 10:51:58 +0000 Subject: 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 --- bitbake/lib/bb/runqueue.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bitbake/lib/bb/runqueue.py') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index fc06392820..21383f4206 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -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: -- cgit v1.2.3-54-g00ecf