summaryrefslogtreecommitdiff
path: root/guix/lint.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-06-12 22:26:47 +0100
committerChristopher Baines <mail@cbaines.net>2020-06-12 22:26:47 +0100
commitdb6290af7cea3434a72d98c007cb6f5d0d72b1b1 (patch)
tree127da33d5cb31ae79108990ef7ec48278c8ef152 /guix/lint.scm
parent29e4d3ea064f039d60b5f41a1077bc9d4bab322a (diff)
downloadguix-db6290af7cea3434a72d98c007cb6f5d0d72b1b1.tar.gz
guix-db6290af7cea3434a72d98c007cb6f5d0d72b1b1.tar.xz
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.
Diffstat (limited to 'guix/lint.scm')
-rw-r--r--guix/lint.scm2
1 files changed, 1 insertions, 1 deletions
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 @@ patch could not be found."
((? 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)
'()