]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake runqueue.py: Improve the progress indicator by skipping tasks that have alrea...
authorRichard Purdie <richard@openedhand.com>
Thu, 9 Aug 2007 10:51:58 +0000 (10:51 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 9 Aug 2007 10:51:58 +0000 (10:51 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2423 311d38ba-8fff-0310-9ca6-ca027cbcb966

bitbake/lib/bb/runqueue.py

index fc06392820dd58f417afd508811cc97c5310da16..21383f4206e216020a8c2c649dda02b4556fede1 100644 (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: