[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu-maintenance: Fix error handling.
From: |
guix-commits |
Subject: |
06/08: gnu-maintenance: Fix error handling. |
Date: |
Sun, 31 Jan 2021 15:50:34 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit be84fc600e76e3962123b94bf14baea4a2e4f442
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Thu Jan 28 00:46:01 2021 +0100
gnu-maintenance: Fix error handling.
Fixes partially <https://bugs.gnu.org/44115>.
* guix/gnu-maintenance.scm (latest-release): Handle 'ftp-error'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/gnu-maintenance.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index 08b2bcf..0da6fc1 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
+;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -361,7 +362,9 @@ return the corresponding signature URL, or #f it signatures
are unavailable."
(let loop ((directory directory)
(result #f))
- (let* ((entries (ftp-list conn directory))
+ (let* ((entries (catch 'ftp-error
+ (lambda _ (ftp-list conn directory))
+ (const '())))
;; Filter out things like /gnupg/patches. Filter out "w32"
;; directories as found on ftp.gnutls.org.
- branch master updated (4ea5767 -> 6094725), guix-commits, 2021/01/31
- 02/08: gnu: autoconf: Update to 2.71., guix-commits, 2021/01/31
- 04/08: database: Validate #:nar-size and #:time when registering store items., guix-commits, 2021/01/31
- 07/08: import: gnu: Mention package name upon failure., guix-commits, 2021/01/31
- 01/08: ci: Add missing imports., guix-commits, 2021/01/31
- 06/08: gnu-maintenance: Fix error handling.,
guix-commits <=
- 03/08: database: Remove workarounds unnecessary with guile-sqlite3 0.1.2., guix-commits, 2021/01/31
- 05/08: gnu: emacs: Make strip-double-wrap more robust, guix-commits, 2021/01/31
- 08/08: scripts: import: json: Fix error handling., guix-commits, 2021/01/31