guix/doc
Ludovic Courtès 74afaa37d5
cve: Rewrite to read the JSON feed instead of the XML feed.
The XML feed was discontinued on Oct. 16th, 2019:

  <https://nvd.nist.gov/General/News/XML-Vulnerability-Feed-Retirement-Phase-3>

* guix/cve.scm (string->date*): New procedure.
(<cve-item>, <cve>, <cve-reference>): New record types.
(cpe-match->cve-configuration, configuration-data->cve-configurations)
(json->cve-items, version-matches?): New procedures.
(yearly-feed-uri): Change URL to refer to JSON feed.
(cpe->product-alist, %parse-vulnerability-feed)
(xml->vulnerabilities): Remove.
(cve-configuration->package-list, merge-package-lists)
(cve-item->vulnerability, json->vulnerabilities): New procedures.
(write-cache): Use 'json->vulnerabilities' instead of
'xml->vulnerabilities', and remove 'parameterize'.
(vulnerabilities->lookup-proc): Use 'version-matches?' when VERSION is
true.
* tests/cve.scm (%sample): Use 'tests/cve-sample.json'.
(%expected-vulnerabilities): Rewrite accordingly.
("json->cve-items", "cve-item-published-date")
("json->vulnerabilities"): New tests.
("xml->vulnerabilities"): Remove.
("vulnerabilities->lookup-proc"): Adjust to new vulnerabilities.
* tests/cve-sample.json: New file.
* tests/cve-sample.xml: Remove.
* Makefile.am (EXTRA_DIST): Adjust accordingly.
* doc/guix.texi (Invoking guix lint): Update nist.gov URLs.
2019-10-23 16:40:17 +02:00
..
images Merge branch 'staging' into core-updates 2019-03-14 16:30:19 +01:00
build.scm doc: Use the right title in HTML indices for the cookbook. 2019-10-22 18:32:52 +02:00
contributing.texi doc: Use @lisp instead of @example for Scheme snippets. 2019-09-07 18:42:08 +02:00
environment-gdb.scm
fdl-1.3.texi
guix-cookbook.texi doc: Add Guix Cookbook. 2019-09-18 11:38:14 +02:00
guix.texi cve: Rewrite to read the JSON feed instead of the XML feed. 2019-10-23 16:40:17 +02:00
htmlxref.cnf doc: Update htmlxref.cnf. 2019-05-04 23:07:38 +02:00
local.mk Merge branch 'master' into core-updates 2019-09-24 10:11:38 +02:00
package-hello.scm