1
0
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:
Markus Birth 2017-10-06 22:25:44 +02:00
parent 4fa9393fd6
commit 111286dc6e
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -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)))