~ruther/guix-local

87dab3e36b336bd9b972536e0031dbac82f0f38d — Maxim Cournoyer 2 years ago 0aec2c1
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.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/gnu-maintenance.scm
M guix/gnu-maintenance.scm => guix/gnu-maintenance.scm +1 -1
@@ 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)