diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2015-07-14 17:22:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 20:46:45 +0100 |
commit | 5117d9b5d32d5d81adf70fa3e3feac9cef654240 (patch) | |
tree | 5d19f192c79f84ae7c1ba098c9e4a8bafa1215ec | |
parent | e44ce85fe551677fc0dcc1da4f789a0c13093ff1 (diff) | |
download | openembedded-core-contrib-5117d9b5d32d5d81adf70fa3e3feac9cef654240.tar.gz |
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.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 8b21c466fe..2f90be6f61 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -271,8 +271,9 @@ def emit_func(func, o=sys.__stdout__, d = init()): keys = (key for key in d.keys() if not key.startswith("__") and not d.getVarFlag(key, "func")) for key in keys: - emit_var(key, o, d, False) and o.write('\n') + emit_var(key, o, d, False) + o.write('\n') emit_var(func, o, d, False) and o.write('\n') newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func, True)) newdeps |= set((d.getVarFlag(func, "vardeps", True) or "").split()) |