[yocto] [meta-raspberrypi][PATCH] linux-rpi: ensure config file is closed

Andrei Gherzan andrei at gherzan.ro
Mon Jun 13 04:33:56 PDT 2016


Hello,

On Sun, Jun 05, 2016 at 01:38:52AM +1000, Jonathan Liu wrote:
> Avoids warnings like this with python3:
>
>     WARNING: .../meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_3.18.bb: <string>:16: ResourceWarning: unclosed file <_io.TextIOWrapper name='.../meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi/defconfig' mode='r' encoding='UTF-8'>
>
> Signed-off-by: Jonathan Liu <net147 at gmail.com>
> ---
>  recipes-kernel/linux/linux-rpi.inc | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-rpi.inc b/recipes-kernel/linux/linux-rpi.inc
> index 1755685..4b65fc2 100644
> --- a/recipes-kernel/linux/linux-rpi.inc
> +++ b/recipes-kernel/linux/linux-rpi.inc
> @@ -133,4 +133,6 @@ python () {
>      if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines():
>          depends = d.getVar('DEPENDS', False)
>          d.setVar('DEPENDS', depends + ' lzop-native')
> +
> +    configfile.close()
>  }
> https://lists.yoctoproject.org/listinfo/yocto

Merged to master. Thank you.

--
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160613/2f74f44b/attachment.pgp>


More information about the yocto mailing list