mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-21 11:00:56 +00:00
aedi: BuildTarget.update_text_file()
writes to disk only when content is changed
This commit is contained in:
parent
302d046ff6
commit
06c741fbc1
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ class BuildTarget(Target):
|
|||
if patched_line:
|
||||
patched_content.append(patched_line)
|
||||
|
||||
if content == patched_content:
|
||||
return
|
||||
|
||||
with open(path, 'w') as f:
|
||||
f.writelines(patched_content)
|
||||
|
||||
|
|
Loading…
Reference in a new issue