[yocto] [meta-chip][PATCH] Fix unclosed file
Andrei Gherzan
andrei at gherzan.ro
Wed May 24 09:17:22 PDT 2017
On Mon, Nov 28, 2016 at 7:51 PM, Frank Meerkoetter <
meerkoetter at googlemail.com> wrote:
> 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()
> }
Fixed in master and pyro. Thank you.
--
Andrei Gherzan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170524/539d864f/attachment.html>
More information about the yocto
mailing list