guix-commits
[Top][All Lists]
Advanced

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

branch core-updates updated: utils: Change 'patch-shebang' to not try to


From: guix-commits
Subject: branch core-updates updated: utils: Change 'patch-shebang' to not try to patch Rust source files.
Date: Mon, 17 Feb 2020 10:54:36 -0500

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

dannym pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 88f8549  utils: Change 'patch-shebang' to not try to patch Rust source 
files.
88f8549 is described below

commit 88f85494491a0cd4d4262c97860f01e99c2bc313
Author: Danny Milosavljevic <address@hidden>
AuthorDate: Mon Feb 17 16:52:55 2020 +0100

    utils: Change 'patch-shebang' to not try to patch Rust source files.
    
    * guix/build/utils.scm (patch-shebang): Match only absolute paths.
---
 guix/build/utils.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index a398bf9..419c101 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -894,7 +894,7 @@ transferred and the continuation of the transfer as a 
thunk."
     (x x)))
 
 (define patch-shebang
-  (let ((shebang-rx (make-regexp 
"^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
+  (let ((shebang-rx (make-regexp 
"^[[:blank:]]*(/[[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
     (lambda* (file
               #:optional
               (path (search-path-as-string->list (getenv "PATH")))



reply via email to

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