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

Output download XML instead of check XML.

This commit is contained in:
Markus Birth 2017-08-19 02:07:25 +02:00
parent 8a02b42204
commit 231abe73d4

View File

@ -189,11 +189,11 @@ if __name__ == "__main__":
fc.cltp = 10 fc.cltp = 10
check_xml = fc.do_check() check_xml = fc.do_check()
print(fc.pretty_xml(check_xml)) #print(fc.pretty_xml(check_xml))
curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml) curef, fv, tv, fw_id, fileid, fn, fsize, fhash = fc.parse_check(check_xml)
req_xml = fc.do_request(curef, fv, tv, fw_id) req_xml = fc.do_request(curef, fv, tv, fw_id)
#print(fc.pretty_xml(req_xml)) print(fc.pretty_xml(req_xml))
fileid, fileurl, slaves = fc.parse_request(req_xml) fileid, fileurl, slaves = fc.parse_request(req_xml)
for s in slaves: for s in slaves: