mirror of
git://git.yoctoproject.org/poky
synced 2026-05-18 20:14:35 +00:00
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. (From OE-Core rev: 46135c87345c7189053dafbed92c754f9f328c32) Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d03235b2c2
commit
3c7c2fa055
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user