Explorar o código

package/pkg-utils.mk: report the list of ignored CVEs in show-info

Add the list of the CVEs to ignore for each package because they
already have a fix for it.

This information will be useful for a cve-checker.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Gregory CLEMENT %!s(int64=5) %!d(string=hai) anos
pai
achega
b9c9f23f9a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      package/pkg-utils.mk

+ 5 - 0
package/pkg-utils.mk

@@ -119,6 +119,11 @@ define _json-info-pkg
 	"reverse_dependencies": [
 		$(call make-comma-list,$(sort $($(1)_RDEPENDENCIES)))
 	]
+	$(if $($(1)_IGNORE_CVES),
+		$(comma) "ignore_cves": [
+			$(call make-comma-list,$(sort $($(1)_IGNORE_CVES)))
+		]
+	)
 endef
 
 define _json-info-pkg-details