aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkadvisories6
-rw-r--r--tmpl/index.html3
2 files changed, 9 insertions, 0 deletions
diff --git a/mkadvisories b/mkadvisories
index c5a7d8c..0f767cb 100755
--- a/mkadvisories
+++ b/mkadvisories
@@ -141,9 +141,15 @@ sub send_report_mail {
try_to_sendmail($email);
}
+sub dumpdb {
+ my ($advdb) = @_;
+ DumpFile($config->{out_dir} . '/advisories.yaml', $advdb->{advisories});
+}
+
my %advdb;
$advdb{advisories} = get_advisories();
output_pages(\%advdb);
+dumpdb(\%advdb);
send_adv_mail(\%advdb);
send_report_mail(\%advdb);
diff --git a/tmpl/index.html b/tmpl/index.html
index 13e713b..8bfda2d 100644
--- a/tmpl/index.html
+++ b/tmpl/index.html
@@ -18,6 +18,9 @@
<li><a href="https://wiki.mageia.org/en/Mageia_3_Advisories">Mageia 3 Advisories</a></li>
</ul>
+ <h1>DB Dump</h1>
+ A dump of all advisories is available as <a href="advisories.yaml">a yaml file</a>.
+
<h1>Work in progress</h1>
This website is a work in progress. New versions should provide :
<ul>