diff options
author | Raphael Geissert <geissert@debian.org> | 2017-10-18 09:17:45 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2017-10-18 09:17:45 +0000 |
commit | 769eca7be4fa0a5ee92b1646fa9035db979e515a (patch) | |
tree | 66b4aaa9aa392d5ac13e4d56838f63023f4e763c /bin/check-new-issues | |
parent | 855cf605f30b69073be89a552e9fccd1cfbfe1bd (diff) |
Cleanup the CVE text a bit
Drops Status, Category and Current Votes fields
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@56810 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-new-issues')
-rwxr-xr-x | bin/check-new-issues | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index a7e60db6f8..ec906c7b06 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -120,7 +120,13 @@ my $num_missing_bug; foreach my $cve (@{$CVEs}) { $cve =~ /^Name:\s*(CVE\S+)/m or next; - $data->{$1}->{CVE}=\$cve; + my $name = $1; + + # cleanup the description + $cve =~ s/^Current Votes:.+candidate not yet[^\n]+\n{2,3}//ms; + $cve =~ s/^(?:Phase|Status|Category):[^\n]*\n//gms; + + $data->{$name}->{CVE}=\$cve; } my %wnpp; |