diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-06-12 21:47:18 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-06-12 21:47:18 +0000 |
commit | 9834ac78bd45c292bf940a08ad5205100b9a7a40 (patch) | |
tree | a3662e3ec9644bceda6ed1b9e97dbb4f2808a739 /mkadvisories | |
parent | c9a20a66af94911ad1fe5bae9f9a15e0c4936a6b (diff) | |
download | mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.gz mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.bz2 mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.tar.xz mgaadvisories-9834ac78bd45c292bf940a08ad5205100b9a7a40.zip |
Add advisories pages by CVE, release, source package
Diffstat (limited to 'mkadvisories')
-rwxr-xr-x | mkadvisories | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mkadvisories b/mkadvisories index 110a791..97a0072 100755 --- a/mkadvisories +++ b/mkadvisories @@ -22,7 +22,7 @@ my %basename = ( CVE => sub { $_[0] }, ID => sub { $_[0] }, rel => sub { $_[0] }, - pkg => sub { 'pkg_' . $_[0] }, + src => sub { 'src_' . $_[0] }, ); my %tools = ( @@ -110,6 +110,18 @@ sub output_pages { }; process_template($template, 'advisory', $vars, $basename{ID}->($adv)); } + foreach my $by (['rel', 'by_rel'], ['CVE', 'by_cve'], ['src', 'by_src']) { + foreach my $r (keys %{$advdb->{$by->[1]}}) { + my $vars = { + config => $config, + $by->[0] => $r, + advdb => $advdb, + basename => \%basename, + tools => \%tools, + }; + process_template($template, $by->[1], $vars, $basename{$by->[0]}->($r)); + } + } my $vars = { config => $config, advdb => $advdb, @@ -117,6 +129,7 @@ sub output_pages { tools => \%tools, }; process_template($template, 'index', $vars, 'index'); + process_template($template, 'advisories', $vars, 'advisories'); } sub send_adv_mail { |