diff options
Diffstat (limited to 'bitbake/lib/bb/data.py')
| -rw-r--r-- | bitbake/lib/bb/data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index b3abf318af..6ec522aa48 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
| @@ -201,7 +201,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
| 201 | 201 | ||
| 202 | if unexport: | 202 | if unexport: |
| 203 | o.write('unset %s\n' % varExpanded) | 203 | o.write('unset %s\n' % varExpanded) |
| 204 | return 1 | 204 | return 0 |
| 205 | 205 | ||
| 206 | if not val: | 206 | if not val: |
| 207 | return 0 | 207 | return 0 |
| @@ -220,7 +220,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): | |||
| 220 | # to a shell, we need to escape the quotes in the var | 220 | # to a shell, we need to escape the quotes in the var |
| 221 | alter = re.sub('"', '\\"', val.strip()) | 221 | alter = re.sub('"', '\\"', val.strip()) |
| 222 | o.write('%s="%s"\n' % (varExpanded, alter)) | 222 | o.write('%s="%s"\n' % (varExpanded, alter)) |
| 223 | return 1 | 223 | return 0 |
| 224 | 224 | ||
| 225 | def emit_env(o=sys.__stdout__, d = init(), all=False): | 225 | def emit_env(o=sys.__stdout__, d = init(), all=False): |
| 226 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" | 226 | """Emits all items in the data store in a format such that it can be sourced by a shell.""" |
