diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 17:05:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 22:28:04 +0100 |
commit | 566628d8cd674a964d5824391cfd1585a1a22a87 (patch) | |
tree | 670366ee1492ff8bb18b9261dfab9d06c06b0a2d /meta/recipes-core | |
parent | d2ef952851d9ef16875fdbbbc6ae6eb6cfc10cc0 (diff) | |
download | poky-566628d8cd674a964d5824391cfd1585a1a22a87.tar.gz |
class/lib: Fix up various file access methods
There are various bits of cruft that have built up around our file accesses. This patch
cleans some of them up, specifically:
* Remove pointless "from __builtin__ import file"
* Use open(), not file()
* Wrap file usage in a with container to ensure files are closed
* Add missing .close() calls in some cases
(From OE-Core rev: a43e0a8ecd0441131e929daf998c3cd454d9c8f3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 59e0141e19..00c88abcba 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc | |||
@@ -262,6 +262,7 @@ python do_package_prepend () { | |||
262 | 262 | ||
263 | d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name) | 263 | d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name) |
264 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name) | 264 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name) |
265 | f.close() | ||
265 | } | 266 | } |
266 | 267 | ||
267 | pkg_postinst_${PN} () { | 268 | pkg_postinst_${PN} () { |