1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-20 06:43:26 +01:00

filter extraneous 'PRD-' in findprd

This commit is contained in:
thurask 2017-10-26 14:16:39 -04:00
parent 822796fa7b
commit 44f906858d
No known key found for this signature in database
GPG Key ID: A6CCCDEA29795048

View File

@ -43,6 +43,7 @@ with open("prds.txt", "r") as afile:
prddict[key].append(value) prddict[key].append(value)
if args.tocheck is not None: if args.tocheck is not None:
args.tocheck = args.tocheck.replace("PRD-", "")
prdkeys = list(prddict.keys()) prdkeys = list(prddict.keys())
for k in prdkeys: for k in prdkeys:
if k != args.tocheck: if k != args.tocheck: