diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-05-31 12:06:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-06 13:49:16 +0100 |
commit | b657208ee15ae065e5fcc2dd6e0051e03d246727 (patch) | |
tree | ce7afb150fc985c9e1b3d38d1502b650ae6d1ba1 /bin | |
parent | e823e1f0675ff3794eb39ef0b4df2d7a220f4013 (diff) | |
download | bitbake-b657208ee15ae065e5fcc2dd6e0051e03d246727.tar.gz |
bitbake: Improve remote server handling
Two fixes in bitbake related to running remote servers -
* can now specify correctly the bind port
* the information in print conforms to common server infrastructure
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bitbake b/bin/bitbake index f3bbeb466..d263cbdb6 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -204,7 +204,8 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): def start_server(servermodule, configParams, configuration): server = servermodule.BitBakeServer() if configParams.bind: - server.initServer((configParams.bind, 0)) + (host, port) = configParams.bind.split(':') + server.initServer((host, int(port))) else: server.initServer() @@ -313,7 +314,7 @@ def main(): bb.event.ui_queue = [] server_connection.terminate() else: - print("server address: %s, server port: %s" % (server.serverinfo.host, server.serverinfo.port)) + print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port)) return 1 |