summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.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:40:04 +0100
commitc412674cf818e77e35857fb93353e392e7ac9e53 (patch)
tree60ea6c324886a10ce6fb7b4b40e87ab3e07877cb /meta/classes/package.bbclass
parent8611987a63a9456ef3e0812e4162103f5f28300a (diff)
downloadpoky-c412674cf818e77e35857fb93353e392e7ac9e53.tar.gz
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 (From OE-Core rev: 5f6179324ac3956ad87123005bfcab4e8f30e67b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index a1b948276f..1e6a872553 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -330,7 +330,7 @@ def runtime_mapping_rename (varname, d):
330# 330#
331 331
332python package_get_auto_pr() { 332python package_get_auto_pr() {
333 if d.getVar('USE_PR_SERV', True): 333 if d.getVar('USE_PR_SERV', True) != "0":
334 auto_pr=prserv_get_pr_auto(d) 334 auto_pr=prserv_get_pr_auto(d)
335 if auto_pr is None: 335 if auto_pr is None:
336 bb.fatal("Can NOT get auto PR revision from remote PR service") 336 bb.fatal("Can NOT get auto PR revision from remote PR service")