From: Chris Larson Date: Wed, 24 Aug 2011 20:00:03 +0000 (-0700) Subject: terminal: fix issue with unset exportable env vars X-Git-Tag: 2011-1~248 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=332f2a9febfc3697ed4a20fca3016e0399ae90eb;p=openembedded-core.git terminal: fix issue with unset exportable env vars This should resolve the devshell issue people are seeing. Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass index 41230466c4..f29aeb0e12 100644 --- a/meta/classes/terminal.bbclass +++ b/meta/classes/terminal.bbclass @@ -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)