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>
This commit is contained in:
Cristiana Voicu 2013-06-25 16:03:25 +03:00 committed by Richard Purdie
parent 4707a74db3
commit 4852c4f6a1
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class BBCooker:
total += c
#add the variable on a single line, to be easy to replace the second time
total += "#added by bitbake"
total += "\n#added by bitbake"
total += "\n%s = \"%s\"\n" % (var, val)
with open(default_file, 'w') as f: