summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-24 16:30:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-26 11:10:33 +0000
commitc263f31e39f0fd8a7bc411d142937fc533d9dc97 (patch)
treee52f0d1a9db70adb6981867aa69232f8e6eae013 /bitbake/lib
parentc60de991d5b915bfeb5233aa5f998776fdf19f6d (diff)
downloadpoky-c263f31e39f0fd8a7bc411d142937fc533d9dc97.tar.gz
bitbake: main: When retrying the connection, show the attempt number
The current bitbake output makes it hard to know which retry is being attempted. Add this information to the output to make it clearer. (Bitbake rev: 0774e6e03d27adb7aca6fa9c47ab6ad426c937de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-xbitbake/lib/bb/main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 7dc953da66..41dd3b9e03 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -475,10 +475,11 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
475 if not retries: 475 if not retries:
476 raise 476 raise
477 retries -= 1 477 retries -= 1
478 tryno = 8 - retries
478 if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)): 479 if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)):
479 logger.info("Retrying server connection...") 480 logger.info("Retrying server connection (#%d)..." % tryno)
480 else: 481 else:
481 logger.info("Retrying server connection... (%s)" % traceback.format_exc()) 482 logger.info("Retrying server connection (#%d)... (%s)" % (tryno, traceback.format_exc()))
482 if not retries: 483 if not retries:
483 bb.fatal("Unable to connect to bitbake server, or start one") 484 bb.fatal("Unable to connect to bitbake server, or start one")
484 if retries < 5: 485 if retries < 5: