diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-07 13:51:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-08 16:45:06 +0100 |
commit | 0f939ecaf87307ef4fe24f57f0b559f4049558f9 (patch) | |
tree | aa2ef9d058c08e30530c02115d47d859234185b3 /bitbake/lib/bb/ui/knotty.py | |
parent | fb437d6db17d984bf9638324cca51d6009d76ff2 (diff) | |
download | poky-0f939ecaf87307ef4fe24f57f0b559f4049558f9.tar.gz |
bitbake: knotty/uihelper: Show setscene task progress in summary output
With the changes to task accounting, bitbake doesn't show progress
when executing setscene tasks on the summary console output.
Change to show a progress within the setscene tasks and a progress
within the main tasks. I can't see any way to display this more easily
without confusing users.
[YOCTO #14586]
(Bitbake rev: 0244acb968eb593d2ad7bc6e52f222c2b1d39aa9)
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 8df745d130..484545a684 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -276,11 +276,11 @@ class TerminalFilter(object): | |||
276 | print(content) | 276 | print(content) |
277 | else: | 277 | else: |
278 | if self.quiet: | 278 | if self.quiet: |
279 | content = "Running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) | 279 | content = "Running tasks (%s of %s/%s of %s)" % (self.helper.setscene_current, self.helper.setscene_total, self.helper.tasknumber_current, self.helper.tasknumber_total) |
280 | elif not len(activetasks): | 280 | elif not len(activetasks): |
281 | content = "No currently running tasks (%s of %s)" % (self.helper.tasknumber_current, self.helper.tasknumber_total) | 281 | content = "No currently running tasks (%s of %s/%s of %s)" % (self.helper.setscene_current, self.helper.setscene_total, self.helper.tasknumber_current, self.helper.tasknumber_total) |
282 | else: | 282 | else: |
283 | content = "Currently %2s running tasks (%s of %s)" % (len(activetasks), self.helper.tasknumber_current, self.helper.tasknumber_total) | 283 | content = "Currently %2s running tasks (%s of %s/%s of %s)" % (len(activetasks), self.helper.setscene_current, self.helper.setscene_total, self.helper.tasknumber_current, self.helper.tasknumber_total) |
284 | maxtask = self.helper.tasknumber_total | 284 | maxtask = self.helper.tasknumber_total |
285 | if not self.main_progress or self.main_progress.maxval != maxtask: | 285 | if not self.main_progress or self.main_progress.maxval != maxtask: |
286 | widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()] | 286 | widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()] |