From 87dab3e36b336bd9b972536e0031dbac82f0f38d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 6 Sep 2023 00:21:44 -0400 Subject: gnu-maintenance: Do not error when there are no candidates. Fixes . * guix/gnu-maintenance.scm (rewrite-url): Do not error when there are no candidates. This may well be possible, depending on the site. --- guix/gnu-maintenance.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guix') diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 41e0f4443d..5a84fcb117 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -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) -- cgit v1.2.3