diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2012-01-31 14:18:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-01 15:08:42 +0000 |
commit | 555262744d2e20e643a4d0888515327352872ba0 (patch) | |
tree | c8769398215e5d7c9561751f7d17d3fc7f9ef433 /bitbake/lib/prserv/serv.py | |
parent | 90e99a5caefcfd53c9c2780382432df7550f2d2b (diff) | |
download | poky-555262744d2e20e643a4d0888515327352872ba0.tar.gz |
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 <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/prserv/serv.py')
-rw-r--r-- | 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 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): | |||
268 | 268 | ||
269 | def auto_start(d): | 269 | def auto_start(d): |
270 | global singleton | 270 | global singleton |
271 | if d.getVar('USE_PR_SERV', True) == '0': | 271 | if (not d.getVar('PRSERV_HOST', True)) or (not d.getVar('PRSERV_PORT', True)): |
272 | return True | 272 | return True |
273 | 273 | ||
274 | if is_local_special(d.getVar('PRSERV_HOST', True), int(d.getVar('PRSERV_PORT', True))) and not singleton: | 274 | if is_local_special(d.getVar('PRSERV_HOST', True), int(d.getVar('PRSERV_PORT', True))) and not singleton: |