summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-06-25 16:03:25 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-27 10:00:02 +0100
commit2beb9589b1bd9773f587b4dc08afdfe50f4ea913 (patch)
tree8ea7c9757afd50205356e0fc906d779f57ac0a66 /lib/bb/cooker.py
parent3d8044bc79c482c5ea008ddf12a8128dcd1527ee (diff)
downloadbitbake-2beb9589b1bd9773f587b4dc08afdfe50f4ea913.tar.gz
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 <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2245f8ea3..49e6345ce 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: