From 555262744d2e20e643a4d0888515327352872ba0 Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Tue, 31 Jan 2012 14:18:04 +0800 Subject: prserv: Do not ping PRService if not required [YOCTO #1942] Ping the PRService only if PRSERV_HOST and PRSERV_PORT are set. (Bitbake rev: 20f24de0bdafac21f5d8a58701f977efa7041288) Signed-off-by: Lianhao Lu Signed-off-by: Richard Purdie --- bitbake/lib/prserv/serv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/prserv') diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py index fa437f964c..5567c6f574 100644 --- a/bitbake/lib/prserv/serv.py +++ b/bitbake/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: -- cgit v1.2.3-54-g00ecf