From 8fb286b020343af8a3dd5beb3d1eea67172e0ce8 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 29 May 2018 10:59:47 +0200 Subject: [PATCH] Detect OTAs to older versions (~) and don't log if already known (%). --- tclcheck_gapfill.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tclcheck_gapfill.py b/tclcheck_gapfill.py index 9972c02..ecf20cf 100755 --- a/tclcheck_gapfill.py +++ b/tclcheck_gapfill.py @@ -43,8 +43,15 @@ for prd, data in versions.items(): chk = CheckRequest(dev) runner.run(chk) if chk.success: - print("✔", end="", flush=True) - num_item += 1 + if chk.result.tvver == data["latest_ota"]: + print("✔", end="", flush=True) + num_item += 1 + elif chk.result.tvver in data["update_map"] and ver in data["update_map"][chk.result.tvver]: + # Delete dump as we already know the information + chk.result.delete_dump() + print("%", end="", flush=True) + else: + print("~", end="", flush=True) else: print("✖", end="", flush=True) print("")