lint: 'patch-file-names' checks for file name length.
commiteef01cfe8eac8dee8ecf727e4ca459ae065e15ea
authorLudovic Courtès <ludo@gnu.org>
Tue, 28 Nov 2017 14:05:55 +0000 (28 15:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 28 Nov 2017 14:05:55 +0000 (28 15:05 +0100)
tree0ad04efcbcd00d8c0366f5a6674c096051a5bbec
parent1da3d2a3a1b53bdd71774194f4afc13f35bb18e3
lint: 'patch-file-names' checks for file name length.

Reported at <https://bugs.gnu.org/27943>
by Danny Milosavljevic <dannym@scratchpost.org>.

* guix/scripts/lint.scm (%distro-directory): New variable.
(check-patch-file-names): Add check for the file name length.
* tests/lint.scm ("patches: file name too long"): New test.
guix/scripts/lint.scm
tests/lint.scm