summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRalph Siemsen <ralph.siemsen@linaro.org>2020-06-02 14:21:13 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-18 12:25:00 +0100
commit09f9c8311627fb4466f31c1ec807d623b746bc33 (patch)
tree1b6ac101f9d7de9444384e920654be1893a3db8d /meta/classes
parentc86541277ef3cd4782ff7599d921c36a1a09a3f4 (diff)
downloadpoky-09f9c8311627fb4466f31c1ec807d623b746bc33.tar.gz
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. (From OE-Core rev: 99f6de1c74b581054c74c6b4598a5d47facc9964) Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e1c3c0b6e5b01304e2127f5058986697e82adf93) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cve-check.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index 556ac6e67f..514897e8b8 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -301,7 +301,7 @@ def cve_write_data(d, patched, unpatched, whitelisted, cve_data):
301 301
302 for cve in sorted(cve_data): 302 for cve in sorted(cve_data):
303 write_string += "PACKAGE NAME: %s\n" % d.getVar("PN") 303 write_string += "PACKAGE NAME: %s\n" % d.getVar("PN")
304 write_string += "PACKAGE VERSION: %s\n" % d.getVar("PV") 304 write_string += "PACKAGE VERSION: %s%s\n" % (d.getVar("EXTENDPE"), d.getVar("PV"))
305 write_string += "CVE: %s\n" % cve 305 write_string += "CVE: %s\n" % cve
306 if cve in whitelisted: 306 if cve in whitelisted:
307 write_string += "CVE STATUS: Whitelisted\n" 307 write_string += "CVE STATUS: Whitelisted\n"