modified: patch.py

This commit is contained in:
elseif 2026-07-14 20:28:10 +08:00
parent ecf7d9b5ea
commit 68a45aeae2

View File

@ -393,7 +393,6 @@ def patch_squashfs(path,key_dict):
if new_data != data: if new_data != data:
data = new_data data = new_data
modified = True modified = True
assert modified, f'{file_path} key not patched'
with open(f'{file_path}_', 'wb') as f: with open(f'{file_path}_', 'wb') as f:
f.write(data) f.write(data)
if 'loader' in files and os.path.isfile(os.path.join(root, 'loader')): if 'loader' in files and os.path.isfile(os.path.join(root, 'loader')):