diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | lib/MGA/Advisories.pm | 3 | ||||
-rw-r--r-- | tmpl/advisory.json | 2 | ||||
-rw-r--r-- | tmpl/vulns.json | 2 |
5 files changed, 13 insertions, 3 deletions
@@ -1,4 +1,4 @@ -VERSION=0.32 +VERSION=0.33 PROJECTNAME=mga-advisories TARNAME=mgaadvisories @@ -1,3 +1,10 @@ +Version 0.33 + +- show a hint if an SRPM can't be found in non-core +- include source=arch in the JSON purl parameter +- remove a couple of unneeded spaces in vulns.json +- don't always reset a "modified" value in the status file + Version 0.32 - loading all advisories is much faster on multicore machines diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index 9af425e..c7248b8 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -396,6 +396,9 @@ sub assign_id { print $msg = "✔ "; } else { print $msg = "✘ ($rel/$media/$srpm) "; + if ($media ne "core" && index($srpm, ".$media") < 0) { + print $msg .= "(missing .$media suffix?) "; + } $failed = 1; } $buffer .= $msg; diff --git a/tmpl/advisory.json b/tmpl/advisory.json index bd2b306..5144f4c 100644 --- a/tmpl/advisory.json +++ b/tmpl/advisory.json @@ -56,7 +56,7 @@ print JSON->new->utf8(0)->encode($stash->get($stash->get('var'))); [% SET pkgver = pkg.text -%] [% USE purl = String('pkg:rpm/mageia/') -%] [% CALL purl.push(pkgname) -%] -[% CALL purl.push('?distro=mageia-') -%] +[% CALL purl.push('?arch=source&distro=mageia-') -%] [% CALL purl.push(rel) -%] [% SET purltext = purl.text -%] "purl": [% jsonvar('purltext') %] diff --git a/tmpl/vulns.json b/tmpl/vulns.json index 790f88a..11e9773 100644 --- a/tmpl/vulns.json +++ b/tmpl/vulns.json @@ -4,7 +4,7 @@ [% USE advid = String(basename.ID(adv)) -%] [% IF advid.search('^MGASA-') -%] [%- "," IF gotone %] -{"id": "[% basename.ID(adv) %]","modified": "[% date.format(advdb.advisories.$adv.status.modified, format => '%Y-%m-%dT%H:%M:%SZ', gmt => 1) %]"} +{"id":"[% basename.ID(adv) %]","modified":"[% date.format(advdb.advisories.$adv.status.modified, format => '%Y-%m-%dT%H:%M:%SZ', gmt => 1) %]"} [%- SET gotone = 1 %] [%- END %] [%- END %] |