diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-10-11 05:12:30 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:15:35 +0000 |
| commit | cb9a8570c96b0a3785151a287713a7a667ce3f5c (patch) | |
| tree | 2237158c326a263488ca632b398e3d7999d5d89d | |
| parent | 2d6fa605c3ff966d0a07f358a2018dd11b76edc8 (diff) | |
| download | poky-cb9a8570c96b0a3785151a287713a7a667ce3f5c.tar.gz | |
sstate.bbclass: Always show a progress bar if an sstate summary is wanted
In case sstate_checkhashes() is expected to show an sstate summary, then
always show the process progress bar regardless of how long the task
list is. Without this, the sstate summary could unintentionally
overwrite another active progress bar.
(From OE-Core rev: 598851fba244b7435e03440e649c317f089e7598)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-global/sstate.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass index 2fd29d7323..6f72490065 100644 --- a/meta/classes-global/sstate.bbclass +++ b/meta/classes-global/sstate.bbclass | |||
| @@ -1048,7 +1048,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
| 1048 | 1048 | ||
| 1049 | ## thread-safe counter | 1049 | ## thread-safe counter |
| 1050 | cnt_tasks_done = itertools.count(start = 1) | 1050 | cnt_tasks_done = itertools.count(start = 1) |
| 1051 | progress = len(tasklist) >= 100 | 1051 | progress = summary or len(tasklist) >= 100 |
| 1052 | if progress: | 1052 | if progress: |
| 1053 | msg = "Checking sstate mirror object availability" | 1053 | msg = "Checking sstate mirror object availability" |
| 1054 | bb.event.fire(bb.event.ProcessStarted(msg, len(tasklist)), d) | 1054 | bb.event.fire(bb.event.ProcessStarted(msg, len(tasklist)), d) |
