mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-14 00:06:46 +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)
|
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
|
||||||
txt_tv = tv
|
txt_tv = tv
|
||||||
if tv != lastver:
|
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))
|
print("{}: {} {} ({})".format(prd, txt_tv, fhash, model))
|
||||||
except RequestException as e:
|
except RequestException as e:
|
||||||
print("{}: {}".format(prd, str(e)))
|
print("{}: {}".format(prd, str(e)))
|
||||||
|
Loading…
Reference in New Issue
Block a user