aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
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
downloadmgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.gz
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.bz2
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.tar.xz
mgaadvisories-a4e3c35a193a717144df03eee729f8ba705099eb.zip
First version
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/advisory.txt29
-rw-r--r--tmpl/report.txt9
2 files changed, 38 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 -%]
+
diff --git a/tmpl/report.txt b/tmpl/report.txt
new file mode 100644
index 0000000..a1c629d
--- /dev/null
+++ b/tmpl/report.txt
@@ -0,0 +1,9 @@
+[% IF advdb.error -%]
+Error: [% advdb.error %]
+[% ELSE %]
+Advisories updates :
+[% FOREACH report_log IN report_logs -%]
+- [% report_log %]
+[% END -%]
+[% END -%]
+