|
From: | Ludovic Courtès |
Subject: | [bug#47193] Fancify guix lint -c cve output |
Date: | Wed, 31 Mar 2021 14:53:00 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi! Tobias Geerinckx-Rice <me@tobias.gr> skribis: > * guix/lint.scm (check-vulnerabilities): Sort unpatched vulnerabilities > by ID. [...] > (make-warning > package > (G_ "probably vulnerable to ~a") > - (list (string-join (map vulnerability-id unpatched) > + (list (string-join (map vulnerability-id > + (sort unpatched vulnerability<)) > ", ")))))))))) Nitpick: it might be a bit clearer done the other way around: (sort (map vulnerability-id unpatched) cve-id<?) … where ‘cve-id<?’ is like ‘vulnerability<’ but takes a CVE ID (a string). Otherwise LGTM! Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |