diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/data.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 819dff9679..19066c9adc 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -271,6 +271,9 @@ def expandKeys(alterdata, readdata = None): | |||
271 | readdata = alterdata | 271 | readdata = alterdata |
272 | 272 | ||
273 | for key in keys(alterdata): | 273 | for key in keys(alterdata): |
274 | if not '${' in key: | ||
275 | continue | ||
276 | |||
274 | ekey = expand(key, readdata) | 277 | ekey = expand(key, readdata) |
275 | if key == ekey: | 278 | if key == ekey: |
276 | continue | 279 | continue |
@@ -370,6 +373,9 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
370 | # NOTE: should probably check for unbalanced {} within the var | 373 | # NOTE: should probably check for unbalanced {} within the var |
371 | o.write("%s() {\n%s\n}\n" % (varExpanded, val)) | 374 | o.write("%s() {\n%s\n}\n" % (varExpanded, val)) |
372 | else: | 375 | else: |
376 | if getVarFlag(var, "unexport", d): | ||
377 | o.write('unset %s\n' % varExpanded) | ||
378 | return 1 | ||
373 | if getVarFlag(var, "export", d): | 379 | if getVarFlag(var, "export", d): |
374 | o.write('export ') | 380 | o.write('export ') |
375 | else: | 381 | else: |