l.b.s.cveimport : module documentation

Part of lp.bugs.scripts

A set of functions related to the ability to parse the XML CVE database, extract details of known CVE entries, and ensure that all of the known CVE's are fully registered in Launchpad.
Function getText Get the text content of the given element
Function handle_references Handle the references on the given CVE xml DOM.
Function update_one_cve Update the state of a single CVE item.
Class CveUpdaterTunableLoop An ITunableLoop for updating CVEs.
Class CVEUpdater No class docstring; 3/4 methods documented
def getText(elem):
Get the text content of the given element
def handle_references(cve_node, cve, log):
Handle the references on the given CVE xml DOM.

This function is passed an XML dom representing a CVE, and a CVE database object. It looks for Refs in the XML data structure and ensures that those are correctly represented in the database.

It will try to find a relevant reference, and if so, update it. If not, it will create a new reference. Finally, it removes any old references that it no longer sees in the official CVE database. It will return True or False, indicating whether or not the cve was modified in the process.

def update_one_cve(cve_node, log):
Update the state of a single CVE item.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.