Merge ~alexmurray/ubuntu-cve-tracker:preserve-line-when-adding-cvss-in-cve-lib into ubuntu-cve-tracker:master

Proposed by Alex Murray
Status: Merged
Merged at revision: a5a11d9da5663ec115f36b3aa1f9842139d0f1f2
Proposed branch: ~alexmurray/ubuntu-cve-tracker:preserve-line-when-adding-cvss-in-cve-lib
Merge into: ubuntu-cve-tracker:master
Diff against target: 13 lines (+2/-0)
1 file modified
scripts/cve_lib.py (+2/-0)
Reviewer Review Type Date Requested Status
Eduardo Barretto Approve
Review via email: mp+460013@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Eduardo Barretto (ebarretto) wrote :

lgtm, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/scripts/cve_lib.py b/scripts/cve_lib.py
index a4690dd..e1fb582 100755
--- a/scripts/cve_lib.py
+++ b/scripts/cve_lib.py
@@ -1809,6 +1809,8 @@ def add_cvss(cve, source, cvss):
1809 if not updated and in_cvss and not line.startswith(' '):1809 if not updated and in_cvss and not line.startswith(' '):
1810 output_cvss(output, source, cvss, score, severity)1810 output_cvss(output, source, cvss, score, severity)
1811 output.write('\n')1811 output.write('\n')
1812 # write original line too so we don't lost it
1813 output.write(line)
1812 updated = True1814 updated = True
1813 in_cvss = False1815 in_cvss = False
1814 # we have found a CVSS vector1816 # we have found a CVSS vector

Subscribers

People subscribed via source and target branches