mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
import: cran: Avoid HTTP redirect.
* guix/import/cran.scm (cran-fetch): Add trailing slash in URL to avoid HTTP redirect.
This commit is contained in:
parent
d882c235d9
commit
053cfdb3d6
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ (define (cran-fetch name)
|
|||
"Return an sxml representation of the CRAN page for the R package NAME,
|
||||
or #f on failure. NAME is case-sensitive."
|
||||
;; This API always returns the latest release of the module.
|
||||
(let ((cran-url (string-append %cran-url name)))
|
||||
(let ((cran-url (string-append %cran-url name "/")))
|
||||
(false-if-exception
|
||||
(xml->sxml (http-fetch cran-url)
|
||||
#:trim-whitespace? #t
|
||||
|
|
Loading…
Reference in a new issue