diff options
-rwxr-xr-x | bitbake/bin/bitbake-worker | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/data.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index a3ea5d9618..d743ff5105 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -269,7 +269,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask): | |||
269 | 269 | ||
270 | bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) | 270 | bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) |
271 | 271 | ||
272 | if not the_data.getVarFlag(taskname, 'network', False): | 272 | if not bb.utils.to_boolean(the_data.getVarFlag(taskname, 'network')): |
273 | if bb.utils.is_local_uid(uid): | 273 | if bb.utils.is_local_uid(uid): |
274 | logger.debug("Attempting to disable network for %s" % taskname) | 274 | logger.debug("Attempting to disable network for %s" % taskname) |
275 | bb.utils.disable_network(uid, gid) | 275 | bb.utils.disable_network(uid, gid) |
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index f3ae062022..3ee8f5e7db 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -114,8 +114,8 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
114 | if d.getVarFlag(var, 'python', False) and func: | 114 | if d.getVarFlag(var, 'python', False) and func: |
115 | return False | 115 | return False |
116 | 116 | ||
117 | export = d.getVarFlag(var, "export", False) | 117 | export = bb.utils.to_boolean(d.getVarFlag(var, "export")) |
118 | unexport = d.getVarFlag(var, "unexport", False) | 118 | unexport = bb.utils.to_boolean(d.getVarFlag(var, "unexport")) |
119 | if not all and not export and not unexport and not func: | 119 | if not all and not export and not unexport and not func: |
120 | return False | 120 | return False |
121 | 121 | ||
@@ -188,8 +188,8 @@ def emit_env(o=sys.__stdout__, d = init(), all=False): | |||
188 | 188 | ||
189 | def exported_keys(d): | 189 | def exported_keys(d): |
190 | return (key for key in d.keys() if not key.startswith('__') and | 190 | return (key for key in d.keys() if not key.startswith('__') and |
191 | d.getVarFlag(key, 'export', False) and | 191 | bb.utils.to_boolean(d.getVarFlag(key, 'export')) and |
192 | not d.getVarFlag(key, 'unexport', False)) | 192 | not bb.utils.to_boolean(d.getVarFlag(key, 'unexport'))) |
193 | 193 | ||
194 | def exported_vars(d): | 194 | def exported_vars(d): |
195 | k = list(exported_keys(d)) | 195 | k = list(exported_keys(d)) |
@@ -375,7 +375,7 @@ def generate_dependencies(d, ignored_vars): | |||
375 | 375 | ||
376 | mod_funcs = set(bb.codeparser.modulecode_deps.keys()) | 376 | mod_funcs = set(bb.codeparser.modulecode_deps.keys()) |
377 | keys = set(key for key in d if not key.startswith("__")) | mod_funcs | 377 | keys = set(key for key in d if not key.startswith("__")) | mod_funcs |
378 | shelldeps = set(key for key in d.getVar("__exportlist", False) if d.getVarFlag(key, "export", False) and not d.getVarFlag(key, "unexport", False)) | 378 | shelldeps = set(key for key in d.getVar("__exportlist", False) if bb.utils.to_boolean(d.getVarFlag(key, "export")) and not bb.utils.to_boolean(d.getVarFlag(key, "unexport"))) |
379 | varflagsexcl = d.getVar('BB_SIGNATURE_EXCLUDE_FLAGS') | 379 | varflagsexcl = d.getVar('BB_SIGNATURE_EXCLUDE_FLAGS') |
380 | 380 | ||
381 | codeparserd = d.createCopy() | 381 | codeparserd = d.createCopy() |