terminal: fix issue with unset exportable env vars
PATCH 1/1 terminal: fix issue with unset exportable env vars
From: Chris Larson <[email protected]>
This should resolve the devshell issue people are seeing.
Signed-off-by Chris Larson <[email protected]>
--- meta/classes/terminal.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/terminal.bbclass +3 -1
@@ -30,7 +30,9 @@ def oe_terminal(command, title, d): env = dict(os.environ) for export in oe.data.typed_value('OE_TERMINAL_EXPORTS', d): - env[export] = d.getVar(export, True) + value = d.getVar(export, True) + if value is not None: + env[export] = str(value) try: oe.terminal.spawn_preferred(command, title, env)
Signature · 1 line
1.7.4.1
Richard Purdie
AppliedQuoted 8 lines · Chris Larson
From: Chris Larson <[email protected]>
This should resolve the devshell issue people are seeing.
Signed-off-by Chris Larson <[email protected]>--- meta/classes/terminal.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
Merged to master, thanks.
Richard