Mercurial > farol > farolluz
changeset 44:b7e64d0a3a7c
CVE: Add a generator to our generated document
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 30 Dec 2014 12:17:45 +0100 |
parents | b87f2a6e613a |
children | 075519975933 |
files | farolluz/parsers/cve.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/farolluz/parsers/cve.py Mon Dec 29 16:33:34 2014 +0100 +++ b/farolluz/parsers/cve.py Tue Dec 30 12:17:45 2014 +0100 @@ -34,8 +34,9 @@ from .xml import parseDate +from .. import __version__ from ..common import CVRFNote, CVRFReference -from ..document import CVRF, CVRFPublisher, CVRFTracking, CVRFTrackingID, CVRFRevision +from ..document import CVRF, CVRFPublisher, CVRFTracking, CVRFTrackingID, CVRFRevision, CVRFGenerator from ..producttree import CVRFFullProductName from ..utils import utcnow from ..vulnerability import CVRFVulnerability, CVRFCVSSSet, CVRFCWE, CVRFProductStatus @@ -116,6 +117,10 @@ now, now ) doc.setTracking(tracking) + generator = CVRFGenerator() + generator.setEngine('FarolLuz ' + __version__) + generator.setDate(now) + tracking.setGenerator(generator) tracking.addRevision(CVRFRevision((0,), now, 'Document created')) # Add the CVE to that document