Skip to contentSkip to conversation

Lianhao Lu : prserv: Do not ping PRService if not required

PATCH [email protected] 1 participant 1 message Feb 1, 2012

lore
Share & tools
lore
#0 lore raw
Module: bitbake.git
Branch: master
Commit: 20f24de0bdafac21f5d8a58701f977efa7041288
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=20f24de0bdafac21f5d8a58701f977efa7041288
Author: Lianhao Lu <[email protected]>
Date:   Tue Jan 31 14:18:04 2012 +0800

prserv: Do not ping PRService if not required

[YOCTO #1942]
Ping the PRService only if PRSERV_HOST and PRSERV_PORT are set.

---

 lib/prserv/serv.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/prserv/serv.py +1 -1
index fa437f9..5567c6f 100644
@@ -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: