summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-06 00:21:44 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-06 01:03:27 -0400
commit87dab3e36b336bd9b972536e0031dbac82f0f38d (patch)
treea758a65d4e86443a4c80cc068519eb4803dff9d5
parent0aec2c10c0b289963aa451463d341b63ad560b7b (diff)
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.
-rw-r--r--guix/gnu-maintenance.scm2
1 files changed, 1 insertions, 1 deletions
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)