summaryrefslogtreecommitdiffstats
path: root/lib/prserv/serv.py
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-01-31 14:18:04 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-01 15:03:12 +0000
commit20f24de0bdafac21f5d8a58701f977efa7041288 (patch)
tree5997d43cd5b0018bf872a73a9d3258f1c2a52f1c /lib/prserv/serv.py
parentf6493e4bad005a82580380d800ebf4c438292f5b (diff)
downloadbitbake-20f24de0bdafac21f5d8a58701f977efa7041288.tar.gz
prserv: Do not ping PRService if not required
[YOCTO #1942] Ping the PRService only if PRSERV_HOST and PRSERV_PORT are set. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/prserv/serv.py')
-rw-r--r--lib/prserv/serv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index fa437f964..5567c6f57 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -268,7 +268,7 @@ def is_local_special(host, port):
def auto_start(d):
global singleton
- if d.getVar('USE_PR_SERV', True) == '0':
+ if (not d.getVar('PRSERV_HOST', True)) or (not d.getVar('PRSERV_PORT', True)):
return True
if is_local_special(d.getVar('PRSERV_HOST', True), int(d.getVar('PRSERV_PORT', True))) and not singleton: