summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-11-03 16:03:28 +0100
committerRicardo Wurmus <rekado@elephly.net>2016-11-03 16:03:28 +0100
commite3100110ce9c1861f64a638ffd91fd34e15db77c (patch)
tree777a5fa1900cc98e849e6a30a28b6f421d50aa22
parentb054b26a481e2e6609f6050b1bed5c2518bfb832 (diff)
downloadguix-e3100110ce9c1861f64a638ffd91fd34e15db77c.tar.gz
import: cran: Fix off-by-one error.
* guix/import/cran.scm (package->upstream-name): Do not include leading
slash in upstream name URL.
-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 e839af5de2..3fb2e213b0 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -231,7 +231,7 @@ s-expression corresponding to that package, or #f on failure."
                     (start (string-rindex url #\/)))
                 ;; The URL ends on
                 ;; (string-append "/" name "_" version ".tar.gz")
-                (substring url start end)))
+                (substring url (+ start 1) end)))
              (_ #f)))
           (_ #f)))))