summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-layers
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-08 12:06:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-10 17:40:42 +0000
commitb838b8987c81131fab3743e128f87495dbdeafcb (patch)
tree70b8907981ea78e45a40d7bbed1c87a38c73b677 /bitbake/bin/bitbake-layers
parent2a121d5c4d93e1532bc6862a7b6ce3b8225bb99b (diff)
downloadpoky-b838b8987c81131fab3743e128f87495dbdeafcb.tar.gz
bitbake-layers: close files in apply_append()
It's recommended practice to close files when finished with them and the code in this function was not doing this. (Bitbake rev: 470a160813ce6cf04f83258d46ded5c2ab8bc520) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-layers')
-rwxr-xr-xbitbake/bin/bitbake-layers2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index b4c41279b4..b4cfd5506a 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -307,6 +307,8 @@ build results (as the layer priority order has effectively changed).
307 recipefile.write('\n') 307 recipefile.write('\n')
308 recipefile.write('##### bbappended from %s #####\n' % self.get_append_layer(appendname)) 308 recipefile.write('##### bbappended from %s #####\n' % self.get_append_layer(appendname))
309 recipefile.writelines(appendfile.readlines()) 309 recipefile.writelines(appendfile.readlines())
310 recipefile.close()
311 appendfile.close()
310 312
311 def do_show_appends(self, args): 313 def do_show_appends(self, args):
312 """list bbappend files and recipe files they apply to 314 """list bbappend files and recipe files they apply to