mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update patch.py
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
66323bbfea
commit
f4a4187e23
1 changed files with 1 additions and 1 deletions
2
patch.py
2
patch.py
|
|
@ -23,7 +23,7 @@ def replace_key(old,new,data,name=''):
|
|||
new_chunks = [bytes([new[i]]) for i in key_map]
|
||||
data = replace_chunks(old_chunks, new_chunks, data,name)
|
||||
|
||||
if 'ARCH' in os.environ and os.environ['ARCH'] == '-arm64' and os.environ['LATEST_VERSION'] == '7.17.2':
|
||||
if 'ARCH' in os.environ and os.environ['ARCH'] == '-arm64':
|
||||
old_bytes = old_chunks[4] + old_chunks[5] + old_chunks[2] + old_chunks[0] + old_chunks[1] + old_chunks[6] + old_chunks[7]
|
||||
new_bytes = new_chunks[4] + new_chunks[5] + new_chunks[2] + new_chunks[0] + new_chunks[1] + new_chunks[6] + new_chunks[7]
|
||||
if old_bytes in data:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue