diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-09 10:51:58 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-09 10:51:58 +0000 |
commit | 6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d (patch) | |
tree | 8501568dc3fbf7ebbab1de3d1eea5fc71d4d5d74 /bitbake/lib | |
parent | 24909e870fb852bee56cf2553e55100f7dcafe26 (diff) | |
download | poky-6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d.tar.gz |
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
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 12 |
1 files changed, 12 insertions, 0 deletions
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: | |||
482 | def sigint_handler(signum, frame): | 482 | def sigint_handler(signum, frame): |
483 | raise KeyboardInterrupt | 483 | raise KeyboardInterrupt |
484 | 484 | ||
485 | # Find any tasks with current stamps and remove them from the queue | ||
486 | for task1 in range(len(self.runq_fnid)): | ||
487 | task = self.prio_map[task1] | ||
488 | fn = self.taskData.fn_index[self.runq_fnid[task]] | ||
489 | taskname = self.runq_task[task] | ||
490 | if bb.build.stamp_is_current(taskname, self.dataCache, fn): | ||
491 | bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.get_user_idstring(task))) | ||
492 | self.runq_running[task] = 1 | ||
493 | self.task_complete(task) | ||
494 | self.stats.taskCompleted() | ||
495 | self.stats.taskSkipped() | ||
496 | |||
485 | while True: | 497 | while True: |
486 | task = self.get_next_task() | 498 | task = self.get_next_task() |
487 | if task is not None: | 499 | if task is not None: |