Browse Source

Update patch.py

Signed-off-by: elseif <elseif@live.cn>
pull/110/head
elseif 1 year ago
committed by GitHub
parent
commit
c657f2e736
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      patch.py

3
patch.py

@ -269,6 +269,9 @@ def patch_squashfs(path,key_dict):
for file in files:
file = os.path.join(root,file)
if os.path.isfile(file):
if 'sys2' in file:
os.remove(file)
continue
data = open(file,'rb').read()
for old_public_key,new_public_key in key_dict.items():
_data = replace_key(old_public_key,new_public_key,data,file)

Loading…
Cancel
Save