summaryrefslogtreecommitdiffstats
path: root/meta/classes/license_image.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2022-04-07 16:31:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-21 21:26:01 +0100
commitaee507fe6c5e38a72d79da67ab532a92495ea95c (patch)
tree00f031e60704d7892a3bb848a516084c2d73c787 /meta/classes/license_image.bbclass
parentba9b4222e16dfbe27b03ca0b26877ea82950c23f (diff)
downloadpoky-aee507fe6c5e38a72d79da67ab532a92495ea95c.tar.gz
license_image.bbclass: close package.manifest file
* fixes: NOTE: Executing write_package_manifest ... DEBUG: Executing python function write_package_manifest /OE/build/oe-core/openembedded-core/meta/classes/license_image.bbclass:23: ResourceWarning: unclosed file <_io.TextIOWrapper name='/OE/build/oe-core/tmp-glibc/deploy/licenses/core-image-minimal-qemux86-64/package.manifest' mode='w+' encoding='UTF-8'> 'w+').write(output) ResourceWarning: Enable tracemalloc to get the object allocation traceback DEBUG: Python function write_package_manifest finished [YOCTO #14772] (From OE-Core rev: 3e88c663e65fbc1b2e77a8616af4371224ed0ca5) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b3114d5d438b7a63a276b4e825b62f3b1ebceed6) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/license_image.bbclass')
-rw-r--r--meta/classes/license_image.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass
index 1396a95f47..9f3a0c3727 100644
--- a/meta/classes/license_image.bbclass
+++ b/meta/classes/license_image.bbclass
@@ -9,8 +9,8 @@ python write_package_manifest() {
9 9
10 pkgs = image_list_installed_packages(d) 10 pkgs = image_list_installed_packages(d)
11 output = format_pkg_list(pkgs) 11 output = format_pkg_list(pkgs)
12 open(os.path.join(license_image_dir, 'package.manifest'), 12 with open(os.path.join(license_image_dir, 'package.manifest'), "w+") as package_manifest:
13 'w+').write(output) 13 package_manifest.write(output)
14} 14}
15 15
16python license_create_manifest() { 16python license_create_manifest() {