mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
cve-generate-chartdata: Fix indentation
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3f489eb396
commit
d47f0b8c99
|
@ -32,20 +32,20 @@ for branch in os.listdir(args.resultsdir):
|
||||||
if rounded_ts not in counts:
|
if rounded_ts not in counts:
|
||||||
counts[rounded_ts] = {}
|
counts[rounded_ts] = {}
|
||||||
if branch not in counts[rounded_ts]:
|
if branch not in counts[rounded_ts]:
|
||||||
cvereport = os.path.join(branchdir, f)
|
cvereport = os.path.join(branchdir, f)
|
||||||
with open(cvereport) as report:
|
with open(cvereport) as report:
|
||||||
reportdata = json.load(report)
|
reportdata = json.load(report)
|
||||||
count = 0
|
count = 0
|
||||||
seen = []
|
seen = []
|
||||||
for package in reportdata['package']:
|
for package in reportdata['package']:
|
||||||
if branch in ['dunfell', 'kirkstone', 'langdale'] and if package['name'] in ['linux-yocto']:
|
if branch in ['dunfell', 'kirkstone', 'langdale'] and if package['name'] in ['linux-yocto']:
|
||||||
continue
|
continue
|
||||||
for issue in package['issue']:
|
for issue in package['issue']:
|
||||||
if issue['status'] == "Unpatched" and issue['id'] not in seen:
|
if issue['status'] == "Unpatched" and issue['id'] not in seen:
|
||||||
count = count + 1
|
count = count + 1
|
||||||
seen.append(issue['id'])
|
seen.append(issue['id'])
|
||||||
print("Adding count %s for branch %s from file %s (ts %s)" % (count, branch, cvereport, rounded_ts))
|
print("Adding count %s for branch %s from file %s (ts %s)" % (count, branch, cvereport, rounded_ts))
|
||||||
counts[rounded_ts][branch] = str(count)
|
counts[rounded_ts][branch] = str(count)
|
||||||
|
|
||||||
for c in counts:
|
for c in counts:
|
||||||
if int(c) > a_year_ago:
|
if int(c) > a_year_ago:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user