diff mbox series

[14/17] package/pkg-utils.mk: add the CPE ID in show-info

Message ID 20201006134250.22738-15-gregory.clement@bootlin.com
State New
Headers show
Series Adding CPE ID support for CVEs | expand

Commit Message

Gregory CLEMENT Oct. 6, 2020, 1:42 p.m. UTC
Add the CPE ID of each package.

This information will be useful for a cve-checker.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---
 package/pkg-utils.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Matthew Weber Oct. 6, 2020, 5:27 p.m. UTC | #1
Greg,

On Tue, Oct 6, 2020 at 8:46 AM Gregory CLEMENT
<gregory.clement@bootlin.com> wrote:
>
> Add the CPE ID of each package.
>
> This information will be useful for a cve-checker.
>
> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
> ---
>  package/pkg-utils.mk | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
> index f1d085ece1..99000a3043 100644
> --- a/package/pkg-utils.mk
> +++ b/package/pkg-utils.mk
> @@ -130,6 +130,7 @@ define _json-info-pkg-details
>         "version": "$($(1)_DL_VERSION)",
>         "licenses": "$($(1)_LICENSE)",
>         "dl_dir": "$($(1)_DL_SUBDIR)",
> +       "cpeid":  "$($(1)_CPE_ID)",

Here's the point where I'd also suggest getting that valid variable
for use by the scripts.

Regards,
Matt
diff mbox series

Patch

diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
index f1d085ece1..99000a3043 100644
--- a/package/pkg-utils.mk
+++ b/package/pkg-utils.mk
@@ -130,6 +130,7 @@  define _json-info-pkg-details
 	"version": "$($(1)_DL_VERSION)",
 	"licenses": "$($(1)_LICENSE)",
 	"dl_dir": "$($(1)_DL_SUBDIR)",
+	"cpeid":  "$($(1)_CPE_ID)",
 	"downloads": [
 	$(foreach dl,$(sort $($(1)_ALL_DOWNLOADS)),
 		{