From 77a5131a1f80e6a084d07d97e9febfe4bea66b96 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 15 Sep 2017 01:59:15 +0200 Subject: [PATCH] Improved output for OTA versions (shows FROM-version now). --- tclcheck_all.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tclcheck_all.py b/tclcheck_all.py index 1d68468..7b7c059 100644 --- a/tclcheck_all.py +++ b/tclcheck_all.py @@ -18,7 +18,7 @@ fc.mode = fc.MODE_FULL fc.cltp = 10 #fc.cltp = 2010 -print("List of latest {} firmware by PRD:".format("FULL" if fc.mode == fc.MODE_FULL else "OTA")) +print("List of latest {} firmware by PRD:".format("FULL" if fc.mode == fc.MODE_FULL else "OTA (from {})".format(fc.fv))) with open("prds.txt", "r") as afile: prdx = afile.read() @@ -31,7 +31,10 @@ while len(prds) > 0: fc.curef = prd check_xml = fc.do_check() curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml) - print("{}: {} {} ({})".format(prd, tv, fhash, model)) + txt_tv = tv + if fc.mode == fc.MODE_OTA: + txt_tv = "{} ⇨ {}".format(fv, tv) + print("{}: {} {} ({})".format(prd, txt_tv, fhash, model)) prds.pop(0) except Timeout as e: print("{} failed. (Connection timed out.)".format(prd))