aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/advisory.txt
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-06 16:58:47 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-06 16:58:47 +0000
commita4e3c35a193a717144df03eee729f8ba705099eb (patch)
tree36ee0db7499c8ed48b120581387b16023db65909 /tmpl/advisory.txt
downloadmgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.gz
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.bz2
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.xz
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.zip
First version
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 -%]
+