]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: knotty: Ensure last tasks are disaplyed correctly in the footer
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Oct 2012 16:39:47 +0000 (16:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Oct 2012 16:55:39 +0000 (16:55 +0000)
There was an issue where the last tasks run by bitbake would not
correctly get displayed in the knotty footer. This was due to the
total count including active tasks. This change ensures the footer
is displayed if the are any running tasks.

(Bitbake rev: d787e4efc106589811651bc18ca48d5223443b95)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/knotty.py

index 3799018fe301e5b05716ec65359a3a1b7c307ab2..6ac3d85b1ebe9c46381b63e0edb298d1dca2ef35 100644 (file)
@@ -187,7 +187,7 @@ class TerminalFilter(object):
             return
         if self.footer_present:
             self.clearFooter()
-        if not self.helper.tasknumber_total or self.helper.tasknumber_current == self.helper.tasknumber_total:
+        if (not self.helper.tasknumber_total or self.helper.tasknumber_current == self.helper.tasknumber_total) and not len(activetasks):
             return
         tasks = []
         for t in runningpids: