diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-03-08 15:32:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-11 06:56:01 +0000 |
commit | 553856138cd1078e8dae32775603f0af300717d9 (patch) | |
tree | 096f17043092bff6aad3c07d386b5f52cf47efad /bitbake/lib/bb/ui/knotty.py | |
parent | 46163db74b10498f02fee330da9d6de0bc962abf (diff) | |
download | poky-553856138cd1078e8dae32775603f0af300717d9.tar.gz |
bitbake: knotty.py: Improve the message while waiting for running tasks to finish
Use pluralise() to correct the grammar, and drop the colon at the end if
runnning in quiet mode.
(Bitbake rev: 57396289f935892390c11afe95f3eede28fd80e7)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index b02e59c1fe..a520895da2 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -272,7 +272,10 @@ class TerminalFilter(object): | |||
272 | tasks.append("%s (pid %s)" % (activetasks[t]["title"], activetasks[t]["pid"])) | 272 | tasks.append("%s (pid %s)" % (activetasks[t]["title"], activetasks[t]["pid"])) |
273 | 273 | ||
274 | if self.main.shutdown: | 274 | if self.main.shutdown: |
275 | content = "Waiting for %s running tasks to finish:" % len(activetasks) | 275 | content = pluralise("Waiting for %s running task to finish", |
276 | "Waiting for %s running tasks to finish", len(activetasks)) | ||
277 | if not self.quiet: | ||
278 | content += ':' | ||
276 | print(content) | 279 | print(content) |
277 | else: | 280 | else: |
278 | if self.quiet: | 281 | if self.quiet: |