aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-06 18:32:10 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-06 18:32:10 +0000
commit8686d53c7d5fdd5e401b509e22c12c2ea656dff4 (patch)
tree039bb3f347888054340e1f02f9df06d3ceceab63
parent8dfe73550b40814824597b269f18d3454be7df17 (diff)
downloadmgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.gz
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.bz2
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.xz
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.zip
Add DB dump
-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>