mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
bitbake: bitbake: BBUIHelper: Remove function findServerDetails
findServerDetails function can be removed safely from the source tree. Couldn't find any files calling this function. (Bitbake rev: 46871f769db13ccd36deedc5b6f3dbc0a3d31c4b) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -57,44 +57,3 @@ class BBUIHelper:
|
|||||||
self.needUpdate = False
|
self.needUpdate = False
|
||||||
return (self.running_tasks, self.failed_tasks)
|
return (self.running_tasks, self.failed_tasks)
|
||||||
|
|
||||||
def findServerDetails(self):
|
|
||||||
import sys
|
|
||||||
import optparse
|
|
||||||
from bb.server.xmlrpc import BitbakeServerInfo, BitBakeServerConnection
|
|
||||||
host = ""
|
|
||||||
port = 0
|
|
||||||
bind = ""
|
|
||||||
parser = optparse.OptionParser(
|
|
||||||
usage = """%prog -H host -P port -B bindaddr""")
|
|
||||||
|
|
||||||
parser.add_option("-H", "--host", help = "Bitbake server's IP address",
|
|
||||||
action = "store", dest = "host", default = None)
|
|
||||||
|
|
||||||
parser.add_option("-P", "--port", help = "Bitbake server's Port number",
|
|
||||||
action = "store", dest = "port", default = None)
|
|
||||||
|
|
||||||
parser.add_option("-B", "--bind", help = "Hob2 local bind address",
|
|
||||||
action = "store", dest = "bind", default = None)
|
|
||||||
|
|
||||||
options, args = parser.parse_args(sys.argv)
|
|
||||||
for key, val in options.__dict__.items():
|
|
||||||
if key == 'host' and val:
|
|
||||||
host = val
|
|
||||||
elif key == 'port' and val:
|
|
||||||
port = int(val)
|
|
||||||
elif key == 'bind' and val:
|
|
||||||
bind = val
|
|
||||||
|
|
||||||
if not host or not port or not bind:
|
|
||||||
parser.print_usage()
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
serverinfo = BitbakeServerInfo(host, port)
|
|
||||||
clientinfo = (bind, 0)
|
|
||||||
connection = BitBakeServerConnection(serverinfo, clientinfo)
|
|
||||||
|
|
||||||
server = connection.connection
|
|
||||||
eventHandler = connection.events
|
|
||||||
|
|
||||||
return server, eventHandler, host, bind
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user