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>
This commit is contained in:
Richard Purdie 2018-12-24 16:30:01 +00:00
parent c60de991d5
commit c263f31e39

View File

@ -475,10 +475,11 @@ def setup_bitbake(configParams, configuration, extrafeatures=None):
if not retries:
raise
retries -= 1
tryno = 8 - retries
if isinstance(e, (bb.server.process.ProcessTimeout, BrokenPipeError)):
logger.info("Retrying server connection...")
logger.info("Retrying server connection (#%d)..." % tryno)
else:
logger.info("Retrying server connection... (%s)" % traceback.format_exc())
logger.info("Retrying server connection (#%d)... (%s)" % (tryno, traceback.format_exc()))
if not retries:
bb.fatal("Unable to connect to bitbake server, or start one")
if retries < 5: