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
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ rewritten to something like
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)