Skip to contentSkip to conversation

cve-check: include epoch in product version output

PATCH New Ralph Siemsen 1 participant 1 message Jun 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cve-check: include epoch in product version output

In the generated cve.log files, include the epoch in the product version. This better matches how versions are displayed elsewhere, in particular the bb.warn("Found unpatched CVE...") that appears on the terminal when CVEs are found.

---
Hopefully this is the correct mailing list for this patch. If accepted, please also merge into older branches (eg. warrior).

 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cve-check.bbclass +1 -1
index 556ac6e67f..514897e8b8 100644
@@ -301,7 +301,7 @@ def cve_write_data(d, patched, unpatched, whitelisted, cve_data):
 
     for cve in sorted(cve_data):
         write_string += "PACKAGE NAME: %s\n" % d.getVar("PN")
-        write_string += "PACKAGE VERSION: %s\n" % d.getVar("PV")
+        write_string += "PACKAGE VERSION: %s%s\n" % (d.getVar("EXTENDPE"), d.getVar("PV"))
         write_string += "CVE: %s\n" % cve
         if cve in whitelisted:
             write_string += "CVE STATUS: Whitelisted\n"
Signature · 1 line
2.17.1