summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-05-31 12:06:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-07 14:13:18 +0100
commit0ac7a182aa21ee0c2241dc2198adbd059719a97b (patch)
treec071a28e47d02fd1b1e936eb6458ddc38221c192
parentf549cdd712939990531562b308e2dcea88deba40 (diff)
downloadpoky-0ac7a182aa21ee0c2241dc2198adbd059719a97b.tar.gz
bitbake: 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 (Bitbake rev: b657208ee15ae065e5fcc2dd6e0051e03d246727) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/bin/bitbake5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index f3bbeb4667..d263cbdb66 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -204,7 +204,8 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
204def start_server(servermodule, configParams, configuration): 204def start_server(servermodule, configParams, configuration):
205 server = servermodule.BitBakeServer() 205 server = servermodule.BitBakeServer()
206 if configParams.bind: 206 if configParams.bind:
207 server.initServer((configParams.bind, 0)) 207 (host, port) = configParams.bind.split(':')
208 server.initServer((host, int(port)))
208 else: 209 else:
209 server.initServer() 210 server.initServer()
210 211
@@ -313,7 +314,7 @@ def main():
313 bb.event.ui_queue = [] 314 bb.event.ui_queue = []
314 server_connection.terminate() 315 server_connection.terminate()
315 else: 316 else:
316 print("server address: %s, server port: %s" % (server.serverinfo.host, server.serverinfo.port)) 317 print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port))
317 318
318 return 1 319 return 1
319 320