diff --git a/prds.txt b/prds.txt new file mode 100644 index 0000000..502be80 --- /dev/null +++ b/prds.txt @@ -0,0 +1 @@ +PRD-63116-001/nPRD-63116-003/nPRD-63116-005/nPRD-63116-007/nPRD-63116-009/nPRD-63116-010/nPRD-63116-013/nPRD-63116-017/nPRD-63116-020/nPRD-63116-021/nPRD-63116-027/nPRD-63116-033/nPRD-63117-003/nPRD-63117-011/nPRD-63117-015/nPRD-63117-019/nPRD-63117-023/nPRD-63117-025/nPRD-63117-027/nPRD-63117-028/nPRD-63117-029/nPRD-63117-041/nPRD-63117-703/nPRD-63117-704/nPRD-63118-001/nPRD-63734-001/nPRD-63734-002/nPRD-63763-001/nPRD-63764-001/n \ No newline at end of file diff --git a/tclcheck.py b/tclcheck.py index c7ef88e..98948d7 100644 --- a/tclcheck.py +++ b/tclcheck.py @@ -72,6 +72,11 @@ def parse_request(body): return "http://{0}{1}".format(slave, dlurl) +def main2(sess, serid, curef): + checktext = check(sess, serid, curef) + tv, fwid, fn, fs, fh = parse_check(checktext) + print("{0}: {1}".format(curef, tv)) + def main(sess, serid, curef): checktext = check(sess, serid, curef) tv, fwid, filename, filesize, filehash = parse_check(checktext) @@ -87,7 +92,14 @@ if __name__ == "__main__": sess = prep_sess() serid = "543212345000000" if len(sys.argv) > 1: - curef = sys.argv[1] + if sys.argv[1] == "l": + with open("prds.txt", "r") as afile: + prdx = afile.read() + prds = prdx.split("/n") + for prd in prds: + main2(sess, serid, prd) + else: + curef = sys.argv[1] else: curef = "PRD-63764-001" main(sess, serid, curef)