guix lint: make sure check-patches retrieves patch names.
* guix/lint (check-patches): Test the output of origin-patches.
This commit is contained in:
parent
0c115d8c64
commit
90d104ba82
|
@ -152,10 +152,15 @@ Run a set of checkers on the specified package; if none is specified, run the ch
|
|||
(name (package-name package))
|
||||
(full-name (package-full-name package)))
|
||||
(if (and patches
|
||||
(any (lambda (patch)
|
||||
(any (match-lambda
|
||||
((? string? patch)
|
||||
(let ((filename (basename patch)))
|
||||
(not (or (eq? (string-contains filename name) 0)
|
||||
(eq? (string-contains filename full-name) 0)))))
|
||||
(eq? (string-contains filename full-name)
|
||||
0)))))
|
||||
(_
|
||||
;; This must be an <origin> or something like that.
|
||||
#f))
|
||||
patches))
|
||||
(emit-warning package
|
||||
"file names of patches should start with the package name"
|
||||
|
|
Loading…
Reference in New Issue