diff options
| -rwxr-xr-x | bitbake/lib/bb/main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 7f7d87bd02..f2f59f670a 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
| @@ -402,6 +402,13 @@ def bitbake_main(configParams, configuration): | |||
| 402 | if not configParams.bind: | 402 | if not configParams.bind: |
| 403 | raise BBMainException("FATAL: The '--server-only' option requires a name/address " | 403 | raise BBMainException("FATAL: The '--server-only' option requires a name/address " |
| 404 | "to bind to with the -B option.\n") | 404 | "to bind to with the -B option.\n") |
| 405 | else: | ||
| 406 | try: | ||
| 407 | #Checking that the port is a number | ||
| 408 | int(configParams.bind.split(":")[1]) | ||
| 409 | except (ValueError,IndexError): | ||
| 410 | raise BBMainException( | ||
| 411 | "FATAL: Malformed host:port bind parameter") | ||
| 405 | if configParams.remote_server: | 412 | if configParams.remote_server: |
| 406 | raise BBMainException("FATAL: The '--server-only' option conflicts with %s.\n" % | 413 | raise BBMainException("FATAL: The '--server-only' option conflicts with %s.\n" % |
| 407 | ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ | 414 | ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ |
