aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/advisory.txt')
-rw-r--r--tmpl/advisory.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/tmpl/advisory.txt b/tmpl/advisory.txt
new file mode 100644
index 0000000..3da22c5
--- /dev/null
+++ b/tmpl/advisory.txt
@@ -0,0 +1,29 @@
+[% USE date -%]
+[%- SET adv = advdb.advisories.$advisory -%]
+[% advisory %] - [% adv.subject %]
+
+Publication date: [% date.format(adv.pubtime, format => '%d %b %Y', gmt => 1) %]
+Type: [% adv.type %]
+Affected Mageia releases: [% adv.src.keys.sort.join(', ') %]
+[% IF adv.CVE -%]
+CVE: [% adv.CVE.join(",\n ") %]
+[%- END -%]
+
+
+Description:
+[% adv.description -%]
+
+References:
+[% FOREACH ref IN adv.references -%]
+- [% ref %]
+[% END -%]
+
+SRPMS:
+[% FOREACH rel IN adv.src.keys -%]
+[% FOREACH media IN adv.src.$rel.keys -%]
+[% FOREACH srpm IN adv.src.$rel.$media -%]
+- [% rel %]/[% media %]/[% srpm %]
+[% END -%]
+[% END -%]
+[% END -%]
+