aedi: `BuildTarget.update_text_file()` writes to disk only when content is changed
This commit is contained in:
parent
302d046ff6
commit
06c741fbc1
|
@ -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 New Issue