diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-02-22 09:45:34 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-22 15:24:48 +0000 |
commit | 46135c87345c7189053dafbed92c754f9f328c32 (patch) | |
tree | d381e15e743e2b8105244b801aa84bf1d6206d08 /scripts | |
parent | 31be8f47502681d5621af032bca216c22f78fb84 (diff) | |
download | openembedded-core-contrib-46135c87345c7189053dafbed92c754f9f328c32.tar.gz |
scripts: fix file writing in convert-spdx-licenses
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 <scott.murray@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contrib/convert-spdx-licenses.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |