mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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>
This commit is contained in:
parent
747f68bfb2
commit
35814292b6
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ (define (check pattern)
|
|||
|
||||
(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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue