[PATCH v2 19/27] moveconfig: Avoid showing progress at the end

Simon Glass sjg at chromium.org
Fri Sep 15 02:22:21 CEST 2023


When the process is finished, moveconfig leaves a line saying that all
boards were processed (for better or worse). Drop this, since it is
unncessary.

Future work will provide a summary at the end instead.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/moveconfig.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 9d228720c739..0131034a3787 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -282,7 +282,8 @@ class Progress:
 
     def show(self):
         """Display the progress."""
-        print(f' {self.current} defconfigs out of {self.total}\r', end=' ')
+        if self.current != self.total:
+            print(f' {self.current} defconfigs out of {self.total}\r', end=' ')
         sys.stdout.flush()
 
 
-- 
2.42.0.459.ge4e396fd5e-goog



More information about the U-Boot mailing list