guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/20: gnu-maintenance: Do not error when there are no candidates.


From: guix-commits
Subject: 11/20: gnu-maintenance: Do not error when there are no candidates.
Date: Wed, 6 Sep 2023 01:27:55 -0400 (EDT)

apteryx pushed a commit to branch master
in repository guix.

commit 87dab3e36b336bd9b972536e0031dbac82f0f38d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]