import: cran: Fix off-by-one error.
* guix/import/cran.scm (package->upstream-name): Do not include leading slash in upstream name URL.
This commit is contained in:
parent
b054b26a48
commit
e3100110ce
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue