]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qconfig: Move getting the colour to where it is needed
authorSimon Glass <sjg@chromium.org>
Wed, 17 Jul 2024 15:56:58 +0000 (16:56 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Jul 2024 14:01:06 +0000 (08:01 -0600)
Move this assignment down to just above where it is needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/qconfig.py

index 9052aedf57d04c0e331b88dda7095065e24ae4fb..5d6e468d1d860b3b290918afc422a8a5a2d3eaa0 100755 (executable)
@@ -1535,9 +1535,6 @@ def main():
             return 1
         unittest.main()
 
-    col = terminal.Color(terminal.COLOR_NEVER if args.nocolour
-                         else terminal.COLOR_IF_TERMINAL)
-
     if args.scan_source:
         do_scan_source(os.getcwd(), args.update)
         return 0
@@ -1584,6 +1581,9 @@ def main():
     toolchains = toolchain.Toolchains()
     toolchains.GetSettings()
     toolchains.Scan(verbose=False)
+
+    col = terminal.Color(terminal.COLOR_NEVER if args.nocolour
+                         else terminal.COLOR_IF_TERMINAL)
     progress = move_config(toolchains, args, db_queue, col)
     db_queue.join()