summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorMădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>2021-02-23 12:00:21 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-03-01 22:40:41 +0100
commit35814292b6246a26bf938415919782d4de394a95 (patch)
tree48e4b086fe00ff41ecd079e325f99204a7bc608b /guix
parent747f68bfb28ba0a4c68c44e1a990fa3e2522c9e1 (diff)
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>
Diffstat (limited to 'guix')
-rw-r--r--guix/import/cran.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index e8caf080fd..dbc858cb84 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)))