mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
gnu-maintenance: Do not crash on refresh when origin URI is a list.
Updating the simh package would fail with: ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure string-prefix?: Wrong type argument in position 2 (expecting string): ("http://simh.trailing-edge.com/sources/simhv312-4.zip" "http://simh.trailing-edge.com/sources/archive/simhv312-4.zip") This is because it expects a scalar value, but lists are allowed for URIs. * guix/gnu-maintenance.scm (import-html-updatable-release): Check that URI is a string before checking if it has the mirror:// prefix.
This commit is contained in:
parent
ed9bc58938
commit
fd09e7b053
1 changed files with 2 additions and 1 deletions
|
@ -980,7 +980,8 @@ (define* (import-html-updatable-release package #:key (version #f))
|
|||
string to fetch a specific version."
|
||||
(let* ((uri (string->uri
|
||||
(match (origin-uri (package-source package))
|
||||
((? (cut string-prefix? "mirror://" <>) url)
|
||||
((and (? string?)
|
||||
(? (cut string-prefix? "mirror://" <>) url))
|
||||
;; Retrieve the authoritative HTTP URL from a mirror.
|
||||
(http-url? url))
|
||||
((? string? url) url)
|
||||
|
|
Loading…
Reference in a new issue