diff options
author | Thomas Lange <lange@debian.org> | 2023-10-29 00:02:16 +0200 |
---|---|---|
committer | Thomas Lange <lange@debian.org> | 2023-10-29 00:02:16 +0200 |
commit | 2d3ec5c256b109fc38dddbfdaf684a69a535222d (patch) | |
tree | 55deb54960d6e87c61ae7132ab42ac475edf3b2b /english/security/mk-dsa-dla-list | |
parent | f051a2001a227e30ed8da183aa7ffc40f35ba5e7 (diff) |
do not write item if we do not have a link to the announcement mail
This may happen, if the DSA/DLA info is available, but the mail was not
yet sent or is not yet listed in the mail ist archive
Diffstat (limited to 'english/security/mk-dsa-dla-list')
-rwxr-xr-x | english/security/mk-dsa-dla-list | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/english/security/mk-dsa-dla-list b/english/security/mk-dsa-dla-list index 644c4b95985..29c04bf2a97 100755 --- a/english/security/mk-dsa-dla-list +++ b/english/security/mk-dsa-dla-list @@ -163,8 +163,13 @@ sub mk_list { ($date,$dsa,$pkg,$text) = m#\[(\d+\s+\w+\s+\d+)\]\s+(D[SL]A-\d+(?:-\d)?)\s+([\w.+-]+)\s*(?:-\s+)?(.+)?#; # no link was found, maybe due to typo on mailing list + # or when the announcement mail is not yet in the mail list archive # then use a generic link, but still list this DSA/DLA - warn "WARN: No link to mail for $dsa\n" unless $msglink{$dsa}; + unless $msglink{$dsa} { + warn "WARN: No link to mail for $dsa\n"; + $write_yaml = 0; + next; + } $msglink{$dsa} = $msglink{'none'} unless $msglink{$dsa}; if ($opt_F || $opt_f) { |