mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Output OTA version when newer full image is available.
This commit is contained in:
parent
4fa9393fd6
commit
111286dc6e
@ -31,7 +31,7 @@ with open("prds.txt", "rt") as f:
|
||||
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
||||
txt_tv = tv
|
||||
if tv != lastver:
|
||||
txt_tv = tcllib.ANSI_CYAN + txt_tv + tcllib.ANSI_RESET
|
||||
txt_tv = tcllib.ANSI_CYAN + txt_tv + tcllib.ANSI_RESET + " (OTA: {})".format(lastver)
|
||||
print("{}: {} {} ({})".format(prd, txt_tv, fhash, model))
|
||||
except RequestException as e:
|
||||
print("{}: {}".format(prd, str(e)))
|
||||
|
Loading…
Reference in New Issue
Block a user