mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
support/scripts/cve.py: remove unused each_product()
The last usage of each_product() was removed in commit52ae092046("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> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commitd0a7a46813) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
1a8ed4da70
commit
ff7ae59113
@@ -111,12 +111,6 @@ class CVE:
|
|||||||
with open(os.path.join(dirpath, filename), "rb") as f:
|
with open(os.path.join(dirpath, filename), "rb") as f:
|
||||||
yield cls(json.load(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):
|
def parse_node(self, node):
|
||||||
"""
|
"""
|
||||||
Parse the node inside the configurations section to extract the
|
Parse the node inside the configurations section to extract the
|
||||||
|
|||||||
Reference in New Issue
Block a user