diff options
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/data.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 9b565fc37d..b2187d7d5f 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -656,7 +656,7 @@ class BBCooker: | |||
656 | # emit the metadata which isnt valid shell | 656 | # emit the metadata which isnt valid shell |
657 | data.expandKeys(envdata) | 657 | data.expandKeys(envdata) |
658 | for e in envdata.keys(): | 658 | for e in envdata.keys(): |
659 | if data.getVarFlag( e, 'python', envdata ): | 659 | if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False): |
660 | logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) | 660 | logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) |
661 | 661 | ||
662 | 662 | ||
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index dbc6dea68d..b5dcdbd8f8 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -182,12 +182,12 @@ def inheritFromOS(d, savedenv, permitted): | |||
182 | 182 | ||
183 | def emit_var(var, o=sys.__stdout__, d = init(), all=False): | 183 | def emit_var(var, o=sys.__stdout__, d = init(), all=False): |
184 | """Emit a variable to be sourced by a shell.""" | 184 | """Emit a variable to be sourced by a shell.""" |
185 | if d.getVarFlag(var, "python", False): | 185 | func = d.getVarFlag(var, "func", False) |
186 | if d.getVarFlag(var, 'python', False) and func: | ||
186 | return False | 187 | return False |
187 | 188 | ||
188 | export = d.getVarFlag(var, "export", False) | 189 | export = d.getVarFlag(var, "export", False) |
189 | unexport = d.getVarFlag(var, "unexport", False) | 190 | unexport = d.getVarFlag(var, "unexport", False) |
190 | func = d.getVarFlag(var, "func", False) | ||
191 | if not all and not export and not unexport and not func: | 191 | if not all and not export and not unexport and not func: |
192 | return False | 192 | return False |
193 | 193 | ||