Skip to contentSkip to conversation

terminal: fix issue with unset exportable env vars

PATCH Applied Chris Larson 2 participants 2 messages Aug 24, 2011 – Aug 25, 2011

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/terminal.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/classes/terminal.bbclass +3 -1
index 4123046..f29aeb0 100644
@@ -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