lint: check-patch-file-names: Use origin-actual-file-name.

This avoids crashes for the patch-file-names checker where a <origin> is used
for a patch, but without a value for the file-name field. This is currently
the case with the bash package.

* guix/lint.scm (check-patch-file-names): Change origin-file-name to
origin-actual-file-name.
This commit is contained in:
Christopher Baines 2020-06-12 22:26:47 +01:00
parent 29e4d3ea06
commit db6290af7c
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -679,7 +679,7 @@ (define (starts-with-package-name? file-name)
((? string? patch)
(starts-with-package-name? (basename patch)))
((? origin? patch)
(starts-with-package-name? (origin-file-name patch)))
(starts-with-package-name? (origin-actual-file-name patch)))
(_ #f)) ;must be some other file-like object
patches)
'()