Browse Source

import: cran: Fix off-by-one error.

* guix/import/cran.scm (package->upstream-name): Do not include leading
slash in upstream name URL.
version-0.12.0
Ricardo Wurmus 6 years ago
parent
commit
e3100110ce
No known key found for this signature in database GPG Key ID: 197A5888235FACAC
  1. 2
      guix/import/cran.scm

2
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)))))

Loading…
Cancel
Save