mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Ensure pass setVar/setVarFlag strings, not integers
This doesn't cause any issues right now but it make sense to standardise on consistently using strings in the data store. (From OE-Core rev: 99203fbe5ad470ef65cff93cec9d7f332883b5ee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -15,7 +15,7 @@ def emit_terminal_func(command, envdata, d):
|
||||
cmd_func = 'do_terminal'
|
||||
|
||||
envdata.setVar(cmd_func, 'exec ' + command)
|
||||
envdata.setVarFlag(cmd_func, 'func', 1)
|
||||
envdata.setVarFlag(cmd_func, 'func', '1')
|
||||
|
||||
runfmt = d.getVar('BB_RUNFMT', True) or "run.{func}.{pid}"
|
||||
runfile = runfmt.format(func=cmd_func, task=cmd_func, taskfunc=cmd_func, pid=os.getpid())
|
||||
@@ -39,14 +39,14 @@ def oe_terminal(command, title, d):
|
||||
|
||||
for v in os.environ:
|
||||
envdata.setVar(v, os.environ[v])
|
||||
envdata.setVarFlag(v, 'export', 1)
|
||||
envdata.setVarFlag(v, 'export', '1')
|
||||
|
||||
for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d):
|
||||
value = d.getVar(export, True)
|
||||
if value is not None:
|
||||
os.environ[export] = str(value)
|
||||
envdata.setVar(export, str(value))
|
||||
envdata.setVarFlag(export, 'export', 1)
|
||||
envdata.setVarFlag(export, 'export', '1')
|
||||
if export == "PSEUDO_DISABLED":
|
||||
if "PSEUDO_UNLOAD" in os.environ:
|
||||
del os.environ["PSEUDO_UNLOAD"]
|
||||
@@ -62,7 +62,7 @@ def oe_terminal(command, title, d):
|
||||
if value is not None:
|
||||
os.environ[key] = str(value)
|
||||
envdata.setVar(key, str(value))
|
||||
envdata.setVarFlag(key, 'export', 1)
|
||||
envdata.setVarFlag(key, 'export', '1')
|
||||
|
||||
# A complex PS1 might need more escaping of chars.
|
||||
# Lets not export PS1 instead.
|
||||
|
||||
Reference in New Issue
Block a user