mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
gnu-maintenance: Do not error when there are no candidates.
Fixes <https://issues.guix.gnu.org/65773>. * guix/gnu-maintenance.scm (rewrite-url): Do not error when there are no candidates. This may well be possible, depending on the site.
This commit is contained in:
parent
0aec2c10c0
commit
87dab3e36b
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ (define* (rewrite-url url version #:key to-version)
|
|||
links)))
|
||||
;; Retrieve the item having the largest version.
|
||||
(if (null? candidates)
|
||||
(error "no candidates found in rewrite-url")
|
||||
parents
|
||||
(cons (cdr (first (sort candidates
|
||||
(lambda (x y)
|
||||
(version>? (car x)
|
||||
|
|
Loading…
Reference in a new issue