]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
insane.bbclass: make sure to close .patch files
authorMartin Jansa <Martin.Jansa@gmail.com>
Thu, 26 May 2022 10:02:36 +0000 (12:02 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 31 May 2022 15:49:55 +0000 (05:49 -1000)
commitd96022a38908fbcf0583ed3388d5667bff38087b
tree698cd2707e6732fa3f66184278fa2570037a0e9f
parentb34aaa9acbe865f61be0a598b8df2735b1bc76cd
insane.bbclass: make sure to close .patch files

* fixes:
  DEBUG: Executing python function do_qa_patch
  /OE/build/oe-core/openembedded-core/meta/classes/insane.bbclass:1189: ResourceWarning: unclosed file <_io.TextIOWrapper name='/OE/build/oe-core/openembedded-core/meta/recipes-bsp/keymaps/files/GPLv2.patch' mode='r' encoding='utf-8'>
    content = open(fullpath, encoding='utf-8', errors='ignore').read()
  ResourceWarning: Enable tracemalloc to get the object allocation traceback
  DEBUG: Python function do_qa_patch finished

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 61be3668d866834adfff688620aee7e29f6d8c44)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/insane.bbclass