From: Paul Eggleton Date: Thu, 11 Aug 2016 03:36:59 +0000 (+1200) Subject: knotty: don't show number of running tasks in quiet mode X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5317200d9cd73c6f971bc1b0cfe8692749e27e3a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git knotty: don't show number of running tasks in quiet mode There's not a whole lot of point showing how many tasks are running when we're in quiet mode, it just looks a bit strange particularly when it's not running any tasks. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index f89f7b3c30f..b30135ba284 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -256,7 +256,9 @@ class TerminalFilter(object): content = "Waiting for %s running tasks to finish:" % len(activetasks) print(content) else: - if not len(activetasks): + if self.quiet: + content = "Running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) + elif not len(activetasks): content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) else: content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total)