aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/prserv.bbclass
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-05-27 18:27:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-29 09:39:57 +0100
commit5f6179324ac3956ad87123005bfcab4e8f30e67b (patch)
tree7ca28345a3ca829ce409ef5258bfeccc906334fc /meta/classes/prserv.bbclass
parente6f7e11f4ec40582d6343ec3a97f62cae1574344 (diff)
downloadopenembedded-core-contrib-5f6179324ac3956ad87123005bfcab4e8f30e67b.tar.gz
openembedded-core-contrib-5f6179324ac3956ad87123005bfcab4e8f30e67b.tar.bz2
openembedded-core-contrib-5f6179324ac3956ad87123005bfcab4e8f30e67b.zip
package.bbclass,prserv.bbclass: Compare USE_PR_SERV with "1" or "0"
Value of USE_PR_SERV is either "1" or "0" looking at settings in bitbake.conf USE_PR_SERV = "${@[1,0][(bb.data.getVar('PRSERV_HOST',d,1) is None) or (bb.data.getVar('PRSERV_PORT',d,1) is None)]}" So we compare the strings Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/classes/prserv.bbclass')
-rw-r--r--meta/classes/prserv.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/prserv.bbclass b/meta/classes/prserv.bbclass
index de46ff6897..18b8589a7b 100644
--- a/meta/classes/prserv.bbclass
+++ b/meta/classes/prserv.bbclass
@@ -12,7 +12,7 @@ def prserv_make_conn(d):
return conn
def prserv_get_pr_auto(d):
- if not d.getVar('USE_PR_SERV', True):
+ if d.getVar('USE_PR_SERV', True) != "0":
bb.warn("Not using network based PR service")
return None