summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-09 10:51:58 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-09 10:51:58 +0000
commit6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d (patch)
tree8501568dc3fbf7ebbab1de3d1eea5fc71d4d5d74 /bitbake/lib/bb
parent24909e870fb852bee56cf2553e55100f7dcafe26 (diff)
downloadopenembedded-core-6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d.tar.gz
openembedded-core-6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d.tar.bz2
openembedded-core-6e909eb80ea2c94b53c9bfbd3b7f56f26dadbc0d.zip
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/bb')
-rw-r--r--bitbake/lib/bb/runqueue.py12
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:
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: