1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-11-09 22:06:47 +00:00

Added model names after PRD numbers. Display it.

This commit is contained in:
Markus Birth 2017-08-15 16:12:57 +02:00
parent fc5499fc99
commit 2e93d93b69
2 changed files with 36 additions and 35 deletions

View File

@ -1,30 +1,30 @@
PRD-63116-001
PRD-63116-003
PRD-63116-005
PRD-63116-007
PRD-63116-009
PRD-63116-010
PRD-63116-013
PRD-63116-017
PRD-63116-020
PRD-63116-021
PRD-63116-027
PRD-63116-033
PRD-63117-003
PRD-63117-011
PRD-63117-015
PRD-63117-019
PRD-63117-023
PRD-63117-025
PRD-63117-027
PRD-63117-028
PRD-63117-029
PRD-63117-041
PRD-63117-703
PRD-63117-704
PRD-63118-001
PRD-63118-003
PRD-63734-001
PRD-63734-002
PRD-63763-001
PRD-63764-001
PRD-63116-001 Unlocked BBB100-1 (USA)
PRD-63116-003 Bell BBB100-1
PRD-63116-005 BBB100-1
PRD-63116-007 BBB100-1
PRD-63116-009 BBB100-1
PRD-63116-010 BBB100-1
PRD-63116-013 BBB100-1
PRD-63116-017 BBB100-1
PRD-63116-020 BBB100-1
PRD-63116-021 BBB100-1 (HK?)
PRD-63116-027 BBB100-1
PRD-63116-033 BBB100-1
PRD-63117-003 BBB100-2 (UK)
PRD-63117-011 QWERTZ BBB100-2 (Germany)
PRD-63117-015 BBB100-2 (NL, Belgiums)
PRD-63117-019 BBB100-2
PRD-63117-023 AZERTY BBB100-2 (Belgiums)
PRD-63117-025 BBB100-2
PRD-63117-027 QWERTY BBB100-2 (UAE) https://forums.crackberry.com/showthread.php?t=1112475&p=12973537&viewfull=1#post12973537
PRD-63117-028 BBB100-2
PRD-63117-029 BBB100-2
PRD-63117-041 BBB100-2
PRD-63117-703 Prerelease BBB100-2?
PRD-63117-704 Prerelease BBB100-2?
PRD-63118-001 Unlocked BBB100-3
PRD-63118-003 Sprint BBB100-3
PRD-63734-001 Unlocked BBB100-4?
PRD-63734-002 Unlocked BBB100-5?
PRD-63763-001 Unlocked BBB100-6?
PRD-63764-001 Unlocked BBB100-7?

View File

@ -80,10 +80,10 @@ def parse_request(body):
return "http://{0}{1}".format(slave, dlurl)
def main2(sess, serid, curef):
def main2(sess, serid, curef, model="Unknown"):
checktext = check(sess, serid, curef)
tv, fwid, fn, fs, fh = parse_check(checktext)
print("{0}: {1}".format(curef, tv))
print("{0}: {1} ({2})".format(curef, tv, model))
def main(sess, serid, curef):
checktext = check(sess, serid, curef)
@ -106,11 +106,12 @@ if __name__ == "__main__":
with open("prds.txt", "r") as afile:
prdx = afile.read()
prds = list(filter(None, prdx.split("\n")))
for prd in prds:
for prdline in prds:
prd, model = prdline.split(" ", 1)
try:
main2(sess, serid, prd)
main2(sess, serid, prd, model)
except:
print("{} failed.".format(prd))
print("{} ({}) failed.".format(prd, model))
continue
else:
curef = sys.argv[1]