diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 5b885cddd7..e21815daad 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -316,8 +316,14 @@ class BBCooker: | |||
| 316 | try: | 316 | try: |
| 317 | with hashserv.create_client(upstream) as client: | 317 | with hashserv.create_client(upstream) as client: |
| 318 | client.ping() | 318 | client.ping() |
| 319 | except (ConnectionError, ImportError) as e: | 319 | except ImportError as e: |
| 320 | bb.warn("BB_HASHSERVE_UPSTREAM is not valid, unable to connect hash equivalence server at '%s': %s" | 320 | bb.fatal(""""Unable to use hash equivalence server at '%s' due to missing or incorrect python module: |
| 321 | %s | ||
| 322 | Please install the needed module on the build host, or use an environment containing it (e.g a pip venv or OpenEmbedded's buildtools tarball). | ||
| 323 | You can also remove the BB_HASHSERVE_UPSTREAM setting, but this may result in significantly longer build times as bitbake will be unable to reuse prebuilt sstate artefacts.""" | ||
| 324 | % (upstream, repr(e))) | ||
| 325 | except ConnectionError as e: | ||
| 326 | bb.warn("Unable to connect to hash equivalence server at '%s', please correct or remove BB_HASHSERVE_UPSTREAM:\n%s" | ||
| 321 | % (upstream, repr(e))) | 327 | % (upstream, repr(e))) |
| 322 | upstream = None | 328 | upstream = None |
| 323 | 329 | ||
