mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
prservice: Use new connect API
The new prserv connect() function decouples the code in oe-core from the exact classes and implementation details used within bitbake. This allows us to more easily switch over to a new asyncrpc based prservice. (From OE-Core rev: 6bf39c5c8cf09e3f2ce6eba13b9d18193bce9655) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fc5b3c78e5
commit
f7f459bf65
@@ -7,7 +7,7 @@ def prserv_make_conn(d, check = False):
|
||||
host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
|
||||
try:
|
||||
conn = None
|
||||
conn = prserv.serv.PRServerConnection(host_params[0], int(host_params[1]))
|
||||
conn = prserv.serv.connect(host_params[0], int(host_params[1]))
|
||||
if check:
|
||||
if not conn.ping():
|
||||
raise Exception('service not available')
|
||||
|
||||
Reference in New Issue
Block a user