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:
Maxim Cournoyer 2023-09-06 00:21:44 -04:00
parent 0aec2c10c0
commit 87dab3e36b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

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