summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-07-14 17:22:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-24 23:28:34 +0100
commitfdfb3fdc5b45468ebd1d8356cde6ceded1075092 (patch)
treeca66ee8c23670b1f2d222e13d6beba93610ea558 /bitbake/lib/bb/data.py
parentada930055d4395c9565fac292858942cba678123 (diff)
downloadpoky-fdfb3fdc5b45468ebd1d8356cde6ceded1075092.tar.gz
bitbake: data: Add newline after the last export in emit_func
Minor formatting improvement in generated shell scripts. Add a newline after the last export emitted by emit_func. Also, remove chance of putting an extra newline in the middle of the exports, since we never want to do that. (Bitbake rev: 5117d9b5d32d5d81adf70fa3e3feac9cef654240) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 8b21c466fe..2f90be6f61 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -271,8 +271,9 @@ def emit_func(func, o=sys.__stdout__, d = init()):
271 271
272 keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func")) 272 keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func"))
273 for key in keys: 273 for key in keys:
274 emit_var(key, o, d, False) and o.write('\n') 274 emit_var(key, o, d, False)
275 275
276 o.write('\n')
276 emit_var(func, o, d, False) and o.write('\n') 277 emit_var(func, o, d, False) and o.write('\n')
277 newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func, True)) 278 newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func, True))
278 newdeps |= set((d.getVarFlag(func, "vardeps", True) or "").split()) 279 newdeps |= set((d.getVarFlag(func, "vardeps", True) or "").split())