mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
add OS version to header name
This commit is contained in:
parent
1ba638df00
commit
237280cbea
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
/__pycache__/
|
/__pycache__/
|
||||||
/.nvimlog
|
/.nvimlog
|
||||||
/header.bin
|
/header*.bin
|
||||||
|
@ -39,8 +39,8 @@ for s in slaves:
|
|||||||
if fc.mode == fc.MODE_FULL:
|
if fc.mode == fc.MODE_FULL:
|
||||||
header = fc.do_encrypt_header(random.choice(encslaves), fileurl)
|
header = fc.do_encrypt_header(random.choice(encslaves), fileurl)
|
||||||
if len(header) == 4194320:
|
if len(header) == 4194320:
|
||||||
print("Header length check passed. Writing to header.bin.")
|
print("Header length check passed. Writing to header_{}.bin.".format(tv))
|
||||||
with open("header.bin", "wb") as f:
|
with open("header_{}.bin".format(tv), "wb") as f:
|
||||||
f.write(header)
|
f.write(header)
|
||||||
else:
|
else:
|
||||||
print("Header length invalid ({}).".format(len(header)))
|
print("Header length invalid ({}).".format(len(header)))
|
||||||
|
Loading…
Reference in New Issue
Block a user