]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
moveconfig: Avoid showing progress at the end
authorSimon Glass <sjg@chromium.org>
Sat, 23 Sep 2023 19:44:08 +0000 (13:44 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 4 Oct 2023 15:25:21 +0000 (09:25 -0600)
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@chromium.org>
tools/moveconfig.py

index 9d228720c739c034bfbdc2b0892ead7a2dc70355..0131034a37870b9d88b6154c10ca234afa4355a3 100755 (executable)
@@ -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()