Mageia Advisories

[%- USE JSON ( pretty => 1 ) -%] [%- USE date -%] [%- jsadvdb = []; mga_releases = {}; FOREACH adv IN advdb.sorted; a = {}; a.src = []; pkgs = {}; FOREACH rel IN advdb.advisories.$adv.src.keys.sort; FOREACH media IN advdb.advisories.$adv.src.$rel.keys.sort; FOREACH srpm IN advdb.advisories.$adv.src.$rel.$media; SET srcname = tools.pkgname(srpm); IF ! pkgs.$srcname; pkgs.$srcname = 1; a.src.push(srcname); END; END; END; END; a.CVE = advdb.advisories.$adv.CVE; a.rel = advdb.advisories.$adv.src.keys.sort; FOREACH rel IN a.rel; mga_releases.$rel = 1; END; a.type = advdb.advisories.$adv.type; html = BLOCK -%]
[% date.format(advdb.advisories.$adv.status.published, format => '%Y-%m-%d', gmt => 1) %] [% adv %] [% SET sep = '' %] [% FOREACH srcname IN a.src -%] [%- sep -%] [%- SET sep = ', ' -%] [% srcname %] [%- END -%] [% advdb.advisories.$adv.type %] [% SET sep = '' %] [% FOREACH rel IN advdb.advisories.$adv.src.keys.sort %] [% sep %] [% SET sep = ', ' %] [% rel %] [% END %] [% SET sep = '' %] [% FOREACH cve IN advdb.advisories.$adv.CVE %] [% sep %] [% SET sep = ', ' %] [% cve %] [% END %]
[%- END; a.html = html.collapse; jsadvdb.push(a); END; -%]
[%- INCLUDE head.html -%]
[%- INCLUDE body_top.html -%]

# Advisories