From 83f0b79f43f2df35ac6fa9ba11973491e6a52b65 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 3 Jan 2011 20:57:20 +0100 Subject: 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). (Bitbake rev: ba060160fdf1278a273fb2b77d36b8c681807ecf) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- bitbake/lib/bb/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index b3abf318a..6ec522aa4 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): if unexport: o.write('unset %s\n' % varExpanded) - return 1 + return 0 if not val: return 0 @@ -220,7 +220,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.""" -- cgit v1.2.3