mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
lint: Adjust file-name length test for out-of-tree file names.
* guix/scripts/lint.scm (check-patch-file-names): Adjust file-name-length calculation.
This commit is contained in:
parent
eef01cfe8e
commit
0a154c15a8
1 changed files with 4 additions and 1 deletions
|
@ -618,7 +618,10 @@ (define patches
|
|||
(max 99))
|
||||
(for-each (match-lambda
|
||||
((? string? patch)
|
||||
(when (> (+ margin (- (string-length patch) prefix))
|
||||
(when (> (+ margin (if (string-prefix? %distro-directory
|
||||
patch)
|
||||
(- (string-length patch) prefix)
|
||||
(string-length patch)))
|
||||
max)
|
||||
(emit-warning
|
||||
package
|
||||
|
|
Loading…
Reference in a new issue