1
0

Took a hacksaw and split tcllib into several small parts.

This commit is contained in:
2018-02-03 01:36:08 +01:00
parent 4456f76032
commit 34ba8a0db0
16 changed files with 440 additions and 378 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import requests
import sys
import tcllib
import tcllib.argparser
from tcllib import ansi
from requests.exceptions import RequestException
tcllib.make_escapes_work()
@@ -52,7 +53,7 @@ for prd, variant in prds.items():
fc.fv = lastver
check_xml = fc.do_check(max_tries=20)
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
versioninfo = tcllib.ANSI_YELLOW_DARK + fv + tcllib.ANSI_RESET + "" + tcllib.ANSI_YELLOW + tv + tcllib.ANSI_RESET + " (FULL: {})".format(variant["last_full"])
versioninfo = ansi.YELLOW_DARK + fv + ansi.RESET + "" + ansi.YELLOW + tv + ansi.RESET + " (FULL: {})".format(variant["last_full"])
print("{}: {} {} ({})".format(prd, versioninfo, fhash, model))
except RequestException as e:
print("{} ({}): {}".format(prd, lastver, str(e)))