summaryrefslogtreecommitdiffstats
path: root/bin
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-06 13:49:16 +0100
commitb657208ee15ae065e5fcc2dd6e0051e03d246727 (patch)
treece7afb150fc985c9e1b3d38d1502b650ae6d1ba1 /bin
parente823e1f0675ff3794eb39ef0b4df2d7a220f4013 (diff)
downloadbitbake-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-xbin/bitbake5
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