diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-03 20:57:20 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:56:10 +0000 |
commit | ba060160fdf1278a273fb2b77d36b8c681807ecf (patch) | |
tree | 12c2a8c49f8da4f1706f803b2c516090884860f1 /lib | |
parent | bcabe2dfb587042e139890329ff52d9bb9201cf4 (diff) | |
download | bitbake-ba060160fdf1278a273fb2b77d36b8c681807ecf.tar.gz |
data: fewer newlines for (un)export
Previously we emitted two newlines for export and unexport.
One newline for export and unexport is enough (and makes the scripts
look better and a tad smaller).
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 636983edc..8ecf5bdea 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -198,7 +198,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): if unexport: o.write('unset %s\n' % varExpanded) - return 1 + return 0 if not val: return 0 @@ -217,7 +217,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): # to a shell, we need to escape the quotes in the var alter = re.sub('"', '\\"', val.strip()) o.write('%s="%s"\n' % (varExpanded, alter)) - return 1 + return 0 def emit_env(o=sys.__stdout__, d = init(), all=False): """Emits all items in the data store in a format such that it can be sourced by a shell.""" |