diff options
author | Jonathan Liu <net147@gmail.com> | 2016-06-05 01:38:52 +1000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2016-06-13 12:27:38 +0100 |
commit | ffddbad97c67ae20b09284096276d85e7a6a66e1 (patch) | |
tree | ea5e1f728d00def139320a2279ee97ecb4852853 | |
parent | 69840c0bbe03c2e61601e2377c8e2adc264e0478 (diff) | |
download | meta-raspberrypi-ffddbad97c67ae20b09284096276d85e7a6a66e1.tar.gz |
linux-rpi: ensure config file is closed
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@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux-rpi.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 () { | |||
133 | if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines(): | 133 | if 'CONFIG_KERNEL_LZO=y\n' in configfile.readlines(): |
134 | depends = d.getVar('DEPENDS', False) | 134 | depends = d.getVar('DEPENDS', False) |
135 | d.setVar('DEPENDS', depends + ' lzop-native') | 135 | d.setVar('DEPENDS', depends + ' lzop-native') |
136 | |||
137 | configfile.close() | ||
136 | } | 138 | } |