aboutsummaryrefslogtreecommitdiffstats
path: root/mkadvisories
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 /mkadvisories
parent8dfe73550b40814824597b269f18d3454be7df17 (diff)
downloadmgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.gz
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.bz2
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.tar.xz
mgaadvisories-8686d53c7d5fdd5e401b509e22c12c2ea656dff4.zip
Add DB dump
Diffstat (limited to 'mkadvisories')
-rwxr-xr-xmkadvisories6
1 files changed, 6 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);