summaryrefslogtreecommitdiffstats
path: root/bin/check-new-issues
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2017-10-18 09:17:45 +0000
committerRaphael Geissert <geissert@debian.org>2017-10-18 09:17:45 +0000
commit45e8b2348642f77ec874eebbdd70364b961da18c (patch)
tree54aa675926833804466bfe9e3cf0c5bcb47f32dc /bin/check-new-issues
parent04210cbe08c0280a95727355ec78add9746946fe (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-xbin/check-new-issues8
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy