cve: Keep a summarized sexp in cache instead of the full XML.
authorLudovic Courtès <ludo@gnu.org>
Mon, 23 May 2016 15:42:32 +0000 (17:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 23 May 2016 16:05:46 +0000 (18:05 +0200)
commit5cdd21c7fec49e99f20f9ec0444ca1b25ae0bac4
tree4fef41cdaeb1431dde1dd25ff0a723539aef3dc5
parentf22debacb4037f270dc475764834b0968da0b4a8
cve: Keep a summarized sexp in cache instead of the full XML.

This avoids ~20s of XML parsing when running 'guix lint -c cve'.

* guix/cve.scm (vulnerability->sexp, sexp->vulnerability)
(fetch-vulnerabilities): New procedures.
(current-vulnerabilities): Use 'fetch-vulnerabilities'.
guix/cve.scm