Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product()
@ 2025-04-26 21:04 Raphaël Mélotte via buildroot
  2025-05-17 15:28 ` Thomas Petazzoni via buildroot
  2025-05-31 17:00 ` Arnout Vandecappelle via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Raphaël Mélotte via buildroot @ 2025-04-26 21:04 UTC (permalink / raw)
  To: buildroot; +Cc: Raphaël Mélotte

The last usage of each_product() was removed in commit
52ae092046696f099397d3b0a8206262e8203f40 ("support/scripts/cve.py: use
the JSON data in 1.1 schema").

Since it's now unused, remove it.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
---
 support/scripts/cve.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/support/scripts/cve.py b/support/scripts/cve.py
index 5af6e0c43f..18fda8e1a1 100755
--- a/support/scripts/cve.py
+++ b/support/scripts/cve.py
@@ -111,12 +111,6 @@ class CVE:
                     with open(os.path.join(dirpath, filename), "rb") as f:
                         yield cls(json.load(f))
 
-    def each_product(self):
-        """Iterate over each product section of this cve"""
-        for vendor in self.nvd_cve['cve']['affects']['vendor']['vendor_data']:
-            for product in vendor['product']['product_data']:
-                yield product
-
     def parse_node(self, node):
         """
         Parse the node inside the configurations section to extract the
-- 
2.49.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product()
  2025-04-26 21:04 [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product() Raphaël Mélotte via buildroot
@ 2025-05-17 15:28 ` Thomas Petazzoni via buildroot
  2025-05-31 17:00 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-05-17 15:28 UTC (permalink / raw)
  To: Raphaël Mélotte via buildroot; +Cc: Raphaël Mélotte

On Sat, 26 Apr 2025 23:04:09 +0200
Raphaël Mélotte via buildroot <buildroot@buildroot.org> wrote:

> The last usage of each_product() was removed in commit
> 52ae092046696f099397d3b0a8206262e8203f40 ("support/scripts/cve.py: use
> the JSON data in 1.1 schema").
> 
> Since it's now unused, remove it.
> 
> Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
> ---
>  support/scripts/cve.py | 6 ------
>  1 file changed, 6 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product()
  2025-04-26 21:04 [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product() Raphaël Mélotte via buildroot
  2025-05-17 15:28 ` Thomas Petazzoni via buildroot
@ 2025-05-31 17:00 ` Arnout Vandecappelle via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-05-31 17:00 UTC (permalink / raw)
  To: Raphaël Mélotte, buildroot



On 26/04/2025 23:04, Raphaël Mélotte via buildroot wrote:
> The last usage of each_product() was removed in commit
> 52ae092046696f099397d3b0a8206262e8203f40 ("support/scripts/cve.py: use
> the JSON data in 1.1 schema").
> 
> Since it's now unused, remove it.
> 
> Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>

  Applied to 2025.02.x, thanks.

  Regards,
  Arnout

> ---
>   support/scripts/cve.py | 6 ------
>   1 file changed, 6 deletions(-)
> 
> diff --git a/support/scripts/cve.py b/support/scripts/cve.py
> index 5af6e0c43f..18fda8e1a1 100755
> --- a/support/scripts/cve.py
> +++ b/support/scripts/cve.py
> @@ -111,12 +111,6 @@ class CVE:
>                       with open(os.path.join(dirpath, filename), "rb") as f:
>                           yield cls(json.load(f))
>   
> -    def each_product(self):
> -        """Iterate over each product section of this cve"""
> -        for vendor in self.nvd_cve['cve']['affects']['vendor']['vendor_data']:
> -            for product in vendor['product']['product_data']:
> -                yield product
> -
>       def parse_node(self, node):
>           """
>           Parse the node inside the configurations section to extract the

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-03  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-26 21:04 [Buildroot] [PATCH 1/1] support/scripts/cve.py: remove unused each_product() Raphaël Mélotte via buildroot
2025-05-17 15:28 ` Thomas Petazzoni via buildroot
2025-05-31 17:00 ` Arnout Vandecappelle via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox