From: Cristiana Voicu Date: Tue, 25 Jun 2013 13:03:25 +0000 (+0300) Subject: bitbake: adding a new comment should be placed on a new line X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2beb9589b1bd9773f587b4dc08afdfe50f4ea913;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 2245f8ea341..49e6345ce4a 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -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: