[bitbake-devel] [PATCH 1/1] prserv: Do not ping PRService if not required
Lianhao Lu
lianhao.lu at intel.com
Tue Jan 31 06:18:04 UTC 2012
[YOCTO #1942]
Ping the PRService only if PRSERV_HOST and PRSERV_PORT are set.
Signed-off-by: Lianhao Lu <lianhao.lu at intel.com>
---
bitbake/lib/prserv/serv.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index fa437f9..5567c6f 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:
--
1.7.0.4
More information about the bitbake-devel
mailing list