The convert-spdx-licenses.py script needs the same file closing
fix as was made to convert-variable-renames to ensure modified
file contents get flushed out.

Signed-off-by: Scott Murray <[email protected]>
---
 scripts/contrib/convert-spdx-licenses.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/contrib/convert-spdx-licenses.py 
b/scripts/contrib/convert-spdx-licenses.py
index 68b9e2f18e..4e194dee3f 100755
--- a/scripts/contrib/convert-spdx-licenses.py
+++ b/scripts/contrib/convert-spdx-licenses.py
@@ -114,6 +114,7 @@ def processfile(fn):
                     if orig != line:
                         modified = True
                     new_file.write(line)
+        new_file.close()
         if modified:
             shutil.copymode(fn, abs_path)
             os.remove(fn)
-- 
2.35.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162135): 
https://lists.openembedded.org/g/openembedded-core/message/162135
Mute This Topic: https://lists.openembedded.org/mt/89317809/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to