diff options
author | Dan Fandrich <danf@mageia.org> | 2024-03-08 22:43:18 -0800 |
---|---|---|
committer | Dan Fandrich <danf@mageia.org> | 2024-03-08 23:55:05 -0800 |
commit | dcfd914210f70323bdb8c8820cc2eed8f83f4f1f (patch) | |
tree | 08dd439b48fab20efcad14c13c2b783b49524c97 /lib | |
parent | de98902a85982351c7539672391de014252edde5 (diff) | |
download | mgaadvisories-dcfd914210f70323bdb8c8820cc2eed8f83f4f1f.tar mgaadvisories-dcfd914210f70323bdb8c8820cc2eed8f83f4f1f.tar.gz mgaadvisories-dcfd914210f70323bdb8c8820cc2eed8f83f4f1f.tar.bz2 mgaadvisories-dcfd914210f70323bdb8c8820cc2eed8f83f4f1f.tar.xz mgaadvisories-dcfd914210f70323bdb8c8820cc2eed8f83f4f1f.zip |
Write JSON output files in mksite
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MGA/Advisories.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index c8514fa..8ce3581 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -620,6 +620,7 @@ sub output_pages { ENCODING => 'utf8', INCLUDE_PATH => $config->{tmpl_dir}, OUTPUT_PATH => $config->{out_dir}, + EVAL_PERL => 1, ); foreach my $adv (keys %{$advdb->{advisories}}) { my $vars = { @@ -630,6 +631,7 @@ sub output_pages { tools => \%tools, }; process_template($template, 'advisory', $vars, $basename{ID}->($adv)); + process_template($template, 'advisory', $vars, $basename{ID}->($adv), 'json'); } foreach my $by (['rel', 'by_rel'], ['CVE', 'by_cve'], ['src', 'by_src']) { foreach my $r (keys %{$advdb->{$by->[1]}}) { |