mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
support/scripts/cve.py: don't call download_nvd
This patch move the 'download_nvd' call to the 'pkg-stats' script
instead of automatically calling 'read_nvd_dir'.
Since the cve.py file can be used as a library it's up to the caller to
decide whether or not to update the NVD database.
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 867017e736)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
@@ -676,6 +676,8 @@ def check_package_cves(nvd_path, packages):
|
||||
cpe_product_pkgs[pkg.name].append(pkg)
|
||||
|
||||
print(f"Updating NVD database in '{nvd_path}'")
|
||||
cvecheck.CVE.download_nvd(nvd_path)
|
||||
|
||||
for cve in cvecheck.CVE.read_nvd_dir(nvd_path):
|
||||
check_package_cve_affects(cve, cpe_product_pkgs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user