summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/ui/knotty.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index d81ad5d540..3799018fe3 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -183,11 +183,11 @@ class TerminalFilter(object):
183 activetasks = self.helper.running_tasks 183 activetasks = self.helper.running_tasks
184 failedtasks = self.helper.failed_tasks 184 failedtasks = self.helper.failed_tasks
185 runningpids = self.helper.running_pids 185 runningpids = self.helper.running_pids
186 if self.footer_present and (self.lastpids == runningpids): 186 if self.footer_present and (self.lastcount == self.helper.tasknumber_current) and (self.lastpids == runningpids):
187 return 187 return
188 if self.footer_present: 188 if self.footer_present:
189 self.clearFooter() 189 self.clearFooter()
190 if not activetasks: 190 if not self.helper.tasknumber_total or self.helper.tasknumber_current == self.helper.tasknumber_total:
191 return 191 return
192 tasks = [] 192 tasks = []
193 for t in runningpids: 193 for t in runningpids:
@@ -195,6 +195,8 @@ class TerminalFilter(object):
195 195
196 if self.main.shutdown: 196 if self.main.shutdown:
197 content = "Waiting for %s running tasks to finish:" % len(activetasks) 197 content = "Waiting for %s running tasks to finish:" % len(activetasks)
198 elif not len(activetasks):
199 content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total)
198 else: 200 else:
199 content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) 201 content = "Currently %s running tasks (%s of %s):" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total)
200 print content 202 print content
@@ -205,6 +207,7 @@ class TerminalFilter(object):
205 lines = lines + 1 + int(len(content) / (self.columns + 1)) 207 lines = lines + 1 + int(len(content) / (self.columns + 1))
206 self.footer_present = lines 208 self.footer_present = lines
207 self.lastpids = runningpids[:] 209 self.lastpids = runningpids[:]
210 self.lastcount = self.helper.tasknumber_current
208 211
209 def finish(self): 212 def finish(self):
210 if self.stdinbackup: 213 if self.stdinbackup: