[sdk/kde-builder] kde_builder_lib: refactor: Use independent variable tail_msg for simplicity

Andrew Shark <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 1f0d3e676bf763d323961d36805dfad7605d355a by Andrew Shark.
Committed on 24/07/2026 at 21:10.
Pushed by ashark into branch 'master'.

refactor: Use independent variable tail_msg for simplicity

M  +5    -6    kde_builder_lib/status_view.py

https://invent.kde.org/sdk/kde-builder/-/commit/1f0d3e676bf763d323961d36805dfad7605d355a

diff --git a/kde_builder_lib/status_view.py b/kde_builder_lib/status_view.py
index 322fe650..d2bc48c2 100644
--- a/kde_builder_lib/status_view.py
+++ b/kde_builder_lib/status_view.py
@@ -83,7 +83,6 @@ class StatusView:
         E.g. for TTY it clears the line and redisplays the current stats.
         """
         progress_total = self.progress_total
-        msg = None
 
         mod_total, mod_success, mod_failed = self.mod_total, self.mod_success, self.mod_failed
 
@@ -91,16 +90,16 @@ class StatusView:
 
         if mod_total > 1:
             # Build up message in reverse order
-            msg = f"{mod_total} projects"
+            tail_msg = f"{mod_total} projects"
             if mod_failed:
-                msg = Debug().colorize(f"r[b[{mod_failed}] failed, ") + msg
+                tail_msg = Debug().colorize(f"r[b[{mod_failed}] failed, ") + tail_msg
             if mod_success:
-                msg = Debug().colorize(f"g[b[{mod_success}] built, ") + msg
+                tail_msg = Debug().colorize(f"g[b[{mod_success}] built, ") + tail_msg
 
-            status_line = self.status + f" ({msg})"
+            status_line = status_line + f" ({tail_msg})"
 
         if progress_total > 0:
-            msg = "{:.1f}%{}".format(self.cur_progress * 100 / progress_total, status_line)
+            msg = f"{self.cur_progress * 100 / progress_total:.1f}%{status_line}"
 
         elif self.cur_progress < 0:
             msg = status_line
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.