diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-01-17 11:27:37 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-01-17 14:22:07 +0100 |
commit | fcb2318e51d33a9319619f9486a7ac486db2af37 (patch) | |
tree | ed9f869f3943cc33d42485f79c47ba43c53af2a0 /guix/lint.scm | |
parent | fd4c832bdbc4bc3e9479ad1bab6590d03ae78b60 (diff) |
lint: vulnerabilities: Avoid 'mock' in test.
* guix/lint.scm (check-vulnerabilities): Add 'package-vulnerabilities'
optional parameter.
* tests/lint.scm ("cve: one vulnerability"): Use it instead of 'mock'.
Diffstat (limited to 'guix/lint.scm')
-rw-r--r-- | guix/lint.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index 697bd24a1e..24fbf05202 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -1029,8 +1029,11 @@ the NIST server non-fatal." (package-version package)))) ((force lookup) name version))))) -(define (check-vulnerabilities package) - "Check for known vulnerabilities for PACKAGE." +(define* (check-vulnerabilities package + #:optional (package-vulnerabilities + package-vulnerabilities)) + "Check for known vulnerabilities for PACKAGE. Obtain the list of +vulnerability records for PACKAGE by calling PACKAGE-VULNERABILITIES." (let ((package (or (package-replacement package) package))) (match (package-vulnerabilities package) (() |