aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--tmpl/advisory.html2
-rw-r--r--tmpl/advisory.txt5
3 files changed, 5 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 5332716..842b934 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- advisory.{html,txt}: don't add a CVE line when there is no CVE
+
Version 0.3
- add file tmpl/CVE.html, missed in previous version
diff --git a/tmpl/advisory.html b/tmpl/advisory.html
index 177933a..ed59561 100644
--- a/tmpl/advisory.html
+++ b/tmpl/advisory.html
@@ -20,7 +20,7 @@
<br />
[% SET sep = '' %]
- [% IF adv.CVE %]
+ [% IF adv.CVE.list.size != 0 %]
CVE:
[% FOREACH cve IN adv.CVE %]
[% sep %]
diff --git a/tmpl/advisory.txt b/tmpl/advisory.txt
index 41db6d2..2094722 100644
--- a/tmpl/advisory.txt
+++ b/tmpl/advisory.txt
@@ -6,10 +6,9 @@ Publication date: [% date.format(adv.pubtime, format => '%d %b %Y', gmt => 1) %]
URL: [% config.site_url %]/[% basename.ID(advisory) %].html
Type: [% adv.type %]
Affected Mageia releases: [% adv.src.keys.sort.join(', ') %]
-[% IF adv.CVE -%]
+[% IF adv.CVE.list.size != 0 -%]
CVE: [% adv.CVE.join(",\n ") %]
-[%- END -%]
-
+[% END -%]
Description:
[% adv.description -%]