diff mbox series

sstate.bbclass: Always show a progress bar if an sstate summary is wanted

Message ID 20251011031230.2243947-1-pkj@axis.com
State New
Headers show
Series sstate.bbclass: Always show a progress bar if an sstate summary is wanted | expand

Commit Message

Peter Kjellerstedt Oct. 11, 2025, 3:12 a.m. UTC
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.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes-global/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,
 
             ## thread-safe counter
             cnt_tasks_done = itertools.count(start = 1)
-            progress = len(tasklist) >= 100
+            progress = summary or len(tasklist) >= 100
             if progress:
                 msg = "Checking sstate mirror object availability"
                 bb.event.fire(bb.event.ProcessStarted(msg, len(tasklist)), d)