[yocto] [meta-chip][PATCH] Fix unclosed file

Frank Meerkoetter meerkoetter at googlemail.com
Mon Nov 28 11:51:01 PST 2016


WARNING: /projects/meta-chip/recipes-kernel/linux/linux-chip_git.bb: <string>:14: ResourceWarning: unclosed file <_io.TextIOWrapper name='/projects/meta-chip/recipes-kernel/linux/linux-chip/defconfig' mode='r' encoding='UTF-8'>
---
 recipes-kernel/linux/linux-chip_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-kernel/linux/linux-chip_git.bb b/recipes-kernel/linux/linux-chip_git.bb
index 6f0b193..38df4ad 100644
--- a/recipes-kernel/linux/linux-chip_git.bb
+++ b/recipes-kernel/linux/linux-chip_git.bb
@@ -69,4 +69,6 @@ python () {
     if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines():
         depends = d.getVar('DEPENDS', False)
         d.setVar('DEPENDS', depends + ' lzop-native')
+
+    configfile.close()
 }
-- 
2.7.4




More information about the yocto mailing list