diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-04-26 09:16:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-27 15:12:57 +0100 |
commit | ebb7adac03a863304dad00d0df8e9096bb1a49c3 (patch) | |
tree | a4e03b5b990f20773d9d89f336a6c07035a46a8f | |
parent | ad5c898808606464d88b4e024c690bfbe9c608a0 (diff) | |
download | poky-ebb7adac03a863304dad00d0df8e9096bb1a49c3.tar.gz |
bitbake: prserv: Add connect function
This function abstracts the setup of a PR service client connection so
that openembedded-core doesn't need to be updated any time the details
are changed.
(Bitbake rev: d892287b31f81b075983ba500be265f75b53df64)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/prserv/serv.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py index 6ccc7ee9e2..4375d3e590 100644 --- a/bitbake/lib/prserv/serv.py +++ b/bitbake/lib/prserv/serv.py | |||
@@ -482,3 +482,6 @@ def auto_shutdown(): | |||
482 | def ping(host, port): | 482 | def ping(host, port): |
483 | conn=PRServerConnection(host, port) | 483 | conn=PRServerConnection(host, port) |
484 | return conn.ping() | 484 | return conn.ping() |
485 | |||
486 | def connect(host, port): | ||
487 | return PRServerConnection(host, port) | ||