From db6290af7cea3434a72d98c007cb6f5d0d72b1b1 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 12 Jun 2020 22:26:47 +0100 Subject: [PATCH] lint: check-patch-file-names: Use origin-actual-file-name. This avoids crashes for the patch-file-names checker where a 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. --- guix/lint.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/lint.scm b/guix/lint.scm index 627016fae0..82861b8a27 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -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) '()