From: Matthew Weber Date: Wed, 19 May 2021 02:46:36 +0000 (-0500) Subject: support/scripts/pkg-stats: verified CPE has a known id but not version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b83bb13826ac3c34e6fb67a5092d94d98ca6a5d;p=buildroot.git support/scripts/pkg-stats: verified CPE has a known id but not version Currently a verified CPE reports the following if versions are not found cpe:2.3:a:qemu:qemu:5.2.0:*:*:*:*:*:*:* CPE identifier unknown in CPE database (Search) This patch clarifies the report to state the 'version' is unknown instead of the 'identifier'. Cc: Yann E. MORIN Signed-off-by: Matthew Weber Signed-off-by: Yann E. MORIN --- diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 0cd3674c52..42c36f7f94 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -610,7 +610,7 @@ def check_package_cpes(nvd_path, packages): if cpedb.find(p.cpeid): p.status['cpe'] = ("ok", "verified CPE identifier") else: - p.status['cpe'] = ("error", "CPE identifier unknown in CPE database") + p.status['cpe'] = ("error", "CPE version unknown in CPE database") def calculate_stats(packages):