From 5f6179324ac3956ad87123005bfcab4e8f30e67b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 27 May 2011 18:27:47 -0700 Subject: 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 --- meta/classes/package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/package.bbclass') diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index a1b948276..1e6a87255 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -330,7 +330,7 @@ def runtime_mapping_rename (varname, d): # python package_get_auto_pr() { - if d.getVar('USE_PR_SERV', True): + if d.getVar('USE_PR_SERV', True) != "0": auto_pr=prserv_get_pr_auto(d) if auto_pr is None: bb.fatal("Can NOT get auto PR revision from remote PR service") -- cgit v1.2.3