qconfig: Move getting the colour to where it is needed
Move this assignment down to just above where it is needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1535,9 +1535,6 @@ def main():
|
|||||||
return 1
|
return 1
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
||||||
col = terminal.Color(terminal.COLOR_NEVER if args.nocolour
|
|
||||||
else terminal.COLOR_IF_TERMINAL)
|
|
||||||
|
|
||||||
if args.scan_source:
|
if args.scan_source:
|
||||||
do_scan_source(os.getcwd(), args.update)
|
do_scan_source(os.getcwd(), args.update)
|
||||||
return 0
|
return 0
|
||||||
@@ -1584,6 +1581,9 @@ def main():
|
|||||||
toolchains = toolchain.Toolchains()
|
toolchains = toolchain.Toolchains()
|
||||||
toolchains.GetSettings()
|
toolchains.GetSettings()
|
||||||
toolchains.Scan(verbose=False)
|
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)
|
progress = move_config(toolchains, args, db_queue, col)
|
||||||
db_queue.join()
|
db_queue.join()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user