guix-commits
[Top][All Lists]
Advanced

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

branch master updated: import/cran: Fix detection of Fortran files.


From: guix-commits
Subject: branch master updated: import/cran: Fix detection of Fortran files.
Date: Mon, 01 Mar 2021 16:45:50 -0500

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

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 3581429  import/cran: Fix detection of Fortran files.
3581429 is described below

commit 35814292b6246a26bf938415919782d4de394a95
Author: Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
AuthorDate: Tue Feb 23 12:00:21 2021 +0100

    import/cran: Fix detection of Fortran files.
    
    This fixes a bug whereby the Guix importer considers files like .f.* to be
    Fortran files.
    
    The expression "\\.f(90|95)?" would match a lot of files containing ".f"
    although they are not Fortran files.  Instead we should only consider files
    with this *suffix*.
    
    * guix/import/cran.scm (directory-needs-fortran?): Only check for suffixes.
    
    Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
---
 guix/import/cran.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index e8caf08..dbc858c 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -361,7 +361,7 @@ empty list when the FIELD cannot be found."
 
 (define (directory-needs-fortran? dir)
   "Check if the directory DIR contains Fortran source files."
-  (match (find-files dir "\\.f(90|95)?")
+  (match (find-files dir "\\.f(90|95)$")
     (() #f)
     (_ #t)))
 



reply via email to

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