summaryrefslogtreecommitdiffstats
path: root/bin
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:37:57 +0000
commit470a160813ce6cf04f83258d46ded5c2ab8bc520 (patch)
treed64fb9dca5d254ed2dc3d479954555224c9c9310 /bin
parent8e4dc97614f2022855143b49d18795ca0352b237 (diff)
downloadbitbake-470a160813ce6cf04f83258d46ded5c2ab8bc520.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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake-layers2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index b4c41279b..b4cfd5506 100755
--- a/bin/bitbake-layers
+++ b/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