diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-06-25 16:03:25 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-27 10:06:09 +0100 |
commit | 4852c4f6a109e64a0b3e342db733eb588389afcc (patch) | |
tree | cd048e6c75d8f1fb5689105cc0bc8f75a11234a9 | |
parent | 4707a74db3822f5ad26e720fa47dd011c5d32a1c (diff) | |
download | poky-4852c4f6a109e64a0b3e342db733eb588389afcc.tar.gz |
bitbake: bitbake: adding a new comment should be placed on a new line
In this case, the comment is appended to the end of the file.
Some text editors, do not place a '\n' to the end of the file
after saving it.
[YOCTO #4636]
(Bitbake rev: 2beb9589b1bd9773f587b4dc08afdfe50f4ea913)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 2245f8ea34..49e6345ce4 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -234,7 +234,7 @@ class BBCooker: | |||
234 | total += c | 234 | total += c |
235 | 235 | ||
236 | #add the variable on a single line, to be easy to replace the second time | 236 | #add the variable on a single line, to be easy to replace the second time |
237 | total += "#added by bitbake" | 237 | total += "\n#added by bitbake" |
238 | total += "\n%s = \"%s\"\n" % (var, val) | 238 | total += "\n%s = \"%s\"\n" % (var, val) |
239 | 239 | ||
240 | with open(default_file, 'w') as f: | 240 | with open(default_file, 'w') as f: |