apteryx pushed a commit to branch master
in repository guix.
commit 87dab3e36b336bd9b972536e0031dbac82f0f38d
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed Sep 6 00:21:44 2023 -0400
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.
---
guix/gnu-maintenance.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)