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
1diff --git a/scripts/cve_lib.py b/scripts/cve_lib.py
2index a4690dd..e1fb582 100755
3--- a/scripts/cve_lib.py
4+++ b/scripts/cve_lib.py
5@@ -1809,6 +1809,8 @@ def add_cvss(cve, source, cvss):
6 if not updated and in_cvss and not line.startswith(' '):
7 output_cvss(output, source, cvss, score, severity)
8 output.write('\n')
9+ # write original line too so we don't lost it
10+ output.write(line)
11 updated = True
12 in_cvss = False
13 # we have found a CVSS vector

Subscribers

People subscribed via source and target branches