mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
support/scripts/pkg-stats: add list of status checks to the json output
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
fb879c1954
commit
759521dae6
@ -88,6 +88,11 @@ class Package:
|
|||||||
all_license_files = list()
|
all_license_files = list()
|
||||||
all_versions = dict()
|
all_versions = dict()
|
||||||
all_ignored_cves = dict()
|
all_ignored_cves = dict()
|
||||||
|
# This is the list of all possible checks. Add new checks to this list so
|
||||||
|
# a tool that post-processeds the json output knows the checks before
|
||||||
|
# iterating over the packages.
|
||||||
|
status_checks = ['cve', 'developers', 'hash', 'license',
|
||||||
|
'license-files', 'patches', 'pkg-check', 'url', 'version']
|
||||||
|
|
||||||
def __init__(self, name, path):
|
def __init__(self, name, path):
|
||||||
self.name = name
|
self.name = name
|
||||||
@ -972,6 +977,7 @@ def dump_json(packages, defconfigs, stats, date, commit, output):
|
|||||||
final = {'packages': pkgs,
|
final = {'packages': pkgs,
|
||||||
'stats': statistics,
|
'stats': statistics,
|
||||||
'defconfigs': defconfigs,
|
'defconfigs': defconfigs,
|
||||||
|
'package_status_checks': Package.status_checks,
|
||||||
'commit': commit,
|
'commit': commit,
|
||||||
'date': str(date)}
|
'date': str(date)}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user