guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: lint: check-patch-file-names: Use origin-actual-f


From: guix-commits
Subject: branch master updated: lint: check-patch-file-names: Use origin-actual-file-name.
Date: Fri, 12 Jun 2020 17:28:57 -0400

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new db6290a  lint: check-patch-file-names: Use origin-actual-file-name.
db6290a is described below

commit db6290af7cea3434a72d98c007cb6f5d0d72b1b1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Jun 12 22:26:47 2020 +0100

    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.
---
 guix/lint.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/lint.scm b/guix/lint.scm
index 627016f..82861b8 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)
          '()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]