diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 7ad1acad1c..54b2615afb 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -370,9 +370,6 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
370 | if type(val) is not types.StringType: | 370 | if type(val) is not types.StringType: |
371 | return 0 | 371 | return 0 |
372 | 372 | ||
373 | if getVarFlag(var, 'matchesenv', d): | ||
374 | return 0 | ||
375 | |||
376 | if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: | 373 | if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all: |
377 | return 0 | 374 | return 0 |
378 | 375 | ||
@@ -382,6 +379,9 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
382 | o.write('unset %s\n' % varExpanded) | 379 | o.write('unset %s\n' % varExpanded) |
383 | return 1 | 380 | return 1 |
384 | 381 | ||
382 | if getVarFlag(var, 'matchesenv', d): | ||
383 | return 0 | ||
384 | |||
385 | val.rstrip() | 385 | val.rstrip() |
386 | if not val: | 386 | if not val: |
387 | return 0 | 387 | return 0 |