]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: adding a new comment should be placed on a new line
authorCristiana Voicu <cristiana.voicu@intel.com>
Tue, 25 Jun 2013 13:03:25 +0000 (16:03 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jun 2013 09:00:02 +0000 (10:00 +0100)
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]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/cooker.py

index 2245f8ea3417ba00c34f1633084c4785fd613f00..49e6345ce4abdee7ceab13997cb3996c64594ed2 100644 (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: