All of 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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.