mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
allow v2 signatures in restoration of backups
This commit is contained in:
parent
3a108bb902
commit
43a1502de8
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ def main():
|
||||||
# first try the stable branch and see if it meets the version requirement
|
# first try the stable branch and see if it meets the version requirement
|
||||||
print("Downloading candidate restore kernel...")
|
print("Downloading candidate restore kernel...")
|
||||||
candidate_kernel = requests.get(URL_LIST[attempt] + 'xous-' + language + '.img').content
|
candidate_kernel = requests.get(URL_LIST[attempt] + 'xous-' + language + '.img').content
|
||||||
if int.from_bytes(candidate_kernel[:4], 'little') != 1:
|
if int.from_bytes(candidate_kernel[:4], 'little') != 1 and int.from_bytes(candidate_kernel[:4], 'little') != 2:
|
||||||
print("Downloaded kernel image has unexpected signature version. Trying the next image.")
|
print("Downloaded kernel image has unexpected signature version. Trying the next image.")
|
||||||
attempt += 1
|
attempt += 1
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue