Sfoglia il codice sorgente

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 <yann.morin.1998@free.fr>
Signed-off-by: Matthew Weber <matthew.weber@collins.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Matthew Weber 4 anni fa
parent
commit
9b83bb1382
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      support/scripts/pkg-stats

+ 1 - 1
support/scripts/pkg-stats

@@ -610,7 +610,7 @@ def check_package_cpes(nvd_path, packages):
         if cpedb.find(p.cpeid):
         if cpedb.find(p.cpeid):
             p.status['cpe'] = ("ok", "verified CPE identifier")
             p.status['cpe'] = ("ok", "verified CPE identifier")
         else:
         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):
 def calculate_stats(packages):