From 3b3898de80dbb3f780237045cd792298d12edede Mon Sep 17 00:00:00 2001 From: George Liu Date: Sun, 2 May 2021 10:03:08 +0800 Subject: debug-collector: Fix unclosed file in bb file - The intent behind this commit is to fix the unclosed file in the phosphor-debug-collector_git.bb file. - When using `bitbake phosphor-debug-collector` to compile it, the warning message is: ResourceWarning: unclosed file <_io.TextIOWrapper name='phosphor-debug-collector/tools/dreport.d/plugins.d/hostlogger' mode='r' encoding='UTF-8'> install_dreport_user_script(srcname, d) Tested: built phosphor-debug-collector successfully and worked. Signed-off-by: George Liu Change-Id: Id95b4a6369571db876acee0ed90953cd3874fff1 --- meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb') diff --git a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb index 9854f05bc..374d32a07 100644 --- a/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb +++ b/meta-phosphor/recipes-phosphor/dump/phosphor-debug-collector_git.bb @@ -161,6 +161,7 @@ def install_dreport_user_script(script_path, d): linkname = "E" + priority + script destlink = os.path.join(destdir, linkname) os.symlink(srclink, destlink) + file.close() #Make the links for all the plugins python install_dreport_user_scripts() { -- cgit v1.2.3