From b838b8987c81131fab3743e128f87495dbdeafcb Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 8 Jan 2012 12:06:51 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-layers | 2 ++ 1 file changed, 2 insertions(+) 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). recipefile.write('\n') recipefile.write('##### bbappended from %s #####\n' % self.get_append_layer(appendname)) recipefile.writelines(appendfile.readlines()) + recipefile.close() + appendfile.close() def do_show_appends(self, args): """list bbappend files and recipe files they apply to -- cgit v1.2.3-54-g00ecf