summaryrefslogtreecommitdiffstats
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
parent2a121d5c4d93e1532bc6862a7b6ce3b8225bb99b (diff)
downloadast2050-yocto-poky-b838b8987c81131fab3743e128f87495dbdeafcb.zip
ast2050-yocto-poky-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>
-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 b4c4127..b4cfd55 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
OpenPOWER on IntegriCloud