diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2020-01-11 03:56:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-28 11:51:03 +0000 |
commit | 3d92e6b49d50866fe9e920f6a1b8140df75f5f42 (patch) | |
tree | 370c54ca53855547601ea1184094d4df3e3099a3 | |
parent | 9b931545281edc33966266e1dd7a025be3838bb7 (diff) | |
download | poky-3d92e6b49d50866fe9e920f6a1b8140df75f5f42.tar.gz |
bitbake: knotty: Hide the footer if a process progress bar is shown
With the introduction of the hash equivalence server, the progress bar
for "Checking sstate mirror object availability" is shown repeatedly
while the tasks are being executed. If the footer is not hidden then,
it will be moved up one line every time, creating a messy interface.
(Bitbake rev: b7ecb1d0232c12b8388ae516b1dbd025ad782d56)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 56b5ec4c2b3e658e73ca6c3a12feeb96df0977fb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 bd9911cf6f..ddcb214867 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -477,7 +477,8 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
477 | if event is None: | 477 | if event is None: |
478 | if main.shutdown > 1: | 478 | if main.shutdown > 1: |
479 | break | 479 | break |
480 | termfilter.updateFooter() | 480 | if not parseprogress: |
481 | termfilter.updateFooter() | ||
481 | event = eventHandler.waitEvent(0.25) | 482 | event = eventHandler.waitEvent(0.25) |
482 | if event is None: | 483 | if event is None: |
483 | continue | 484 | continue |
@@ -539,6 +540,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
539 | continue | 540 | continue |
540 | if event.total == 0: | 541 | if event.total == 0: |
541 | continue | 542 | continue |
543 | termfilter.clearFooter() | ||
542 | parseprogress = new_progress("Parsing recipes", event.total).start() | 544 | parseprogress = new_progress("Parsing recipes", event.total).start() |
543 | continue | 545 | continue |
544 | if isinstance(event, bb.event.ParseProgress): | 546 | if isinstance(event, bb.event.ParseProgress): |
@@ -638,6 +640,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
638 | if isinstance(event, bb.event.ProcessStarted): | 640 | if isinstance(event, bb.event.ProcessStarted): |
639 | if params.options.quiet > 1: | 641 | if params.options.quiet > 1: |
640 | continue | 642 | continue |
643 | termfilter.clearFooter() | ||
641 | parseprogress = new_progress(event.processname, event.total) | 644 | parseprogress = new_progress(event.processname, event.total) |
642 | parseprogress.start(False) | 645 | parseprogress.start(False) |
643 | continue | 646 | continue |