mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/scripts/pkg-stats: fix typos
Signed-off-by: Daniel Lang <dalang@gmx.at> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
829610c701
commit
8997c746fa
@@ -84,7 +84,7 @@ class Package:
|
|||||||
all_ignored_cves = dict()
|
all_ignored_cves = dict()
|
||||||
all_cpeids = dict()
|
all_cpeids = dict()
|
||||||
# This is the list of all possible checks. Add new checks to this list so
|
# 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
|
# a tool that post-processes the json output knows the checks before
|
||||||
# iterating over the packages.
|
# iterating over the packages.
|
||||||
status_checks = ['cve', 'developers', 'hash', 'license',
|
status_checks = ['cve', 'developers', 'hash', 'license',
|
||||||
'license-files', 'patches', 'pkg-check', 'url', 'version']
|
'license-files', 'patches', 'pkg-check', 'url', 'version']
|
||||||
@@ -259,7 +259,7 @@ class Package:
|
|||||||
if var in self.all_cpeids:
|
if var in self.all_cpeids:
|
||||||
self.cpeid = self.all_cpeids[var]
|
self.cpeid = self.all_cpeids[var]
|
||||||
# Set a preliminary status, it might be overridden by check_package_cpes()
|
# Set a preliminary status, it might be overridden by check_package_cpes()
|
||||||
self.status['cpe'] = ("warning", "not checked against CPE dictionnary")
|
self.status['cpe'] = ("warning", "not checked against CPE dictionary")
|
||||||
else:
|
else:
|
||||||
self.status['cpe'] = ("error", "no verified CPE identifier")
|
self.status['cpe'] = ("error", "no verified CPE identifier")
|
||||||
|
|
||||||
@@ -499,7 +499,7 @@ def check_package_latest_version_set_status(pkg, status, version, identifier):
|
|||||||
|
|
||||||
|
|
||||||
async def check_package_get_latest_version_by_distro(session, pkg, retry=True):
|
async def check_package_get_latest_version_by_distro(session, pkg, retry=True):
|
||||||
url = "https://release-monitoring.org//api/project/Buildroot/%s" % pkg.name
|
url = "https://release-monitoring.org/api/project/Buildroot/%s" % pkg.name
|
||||||
try:
|
try:
|
||||||
async with session.get(url) as resp:
|
async with session.get(url) as resp:
|
||||||
if resp.status != 200:
|
if resp.status != 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user