diff options
author | Christopher Baines <mail@cbaines.net> | 2020-06-12 22:26:47 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-06-12 22:26:47 +0100 |
commit | db6290af7cea3434a72d98c007cb6f5d0d72b1b1 (patch) | |
tree | 127da33d5cb31ae79108990ef7ec48278c8ef152 /guix | |
parent | 29e4d3ea064f039d60b5f41a1077bc9d4bab322a (diff) |
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')
-rw-r--r-- | guix/lint.scm | 2 |
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) '() |