summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: