[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking
From: |
guix-commits |
Subject: |
02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors. |
Date: |
Sun, 8 Jan 2023 10:14:20 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 472dd29f37d13897ddda736fa3fda964bacf1c39
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Jan 3 14:53:03 2023 +0100
gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors.
Previously, in a networking-less environment such as 'guix shell -C -D
guix', 'guix refresh --list-updaters' would crash due to a
'gettaddrinfo-error' exception in these predicates.
* guix/gnu-maintenance.scm (%gnu-updater)[pred]: Wrap in
'false-if-networking-error'.
(%gnu-ftp-updater)[pred]: Likewise.
---
guix/gnu-maintenance.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index 0418c297f2..0aa70243b5 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -883,7 +883,8 @@ string to fetch a specific version."
(upstream-updater
(name 'gnu)
(description "Updater for GNU packages")
- (pred gnu-hosted?)
+ (pred (lambda (package)
+ (false-if-networking-error (gnu-hosted? package))))
(import import-gnu-release)))
(define %gnu-ftp-updater
@@ -893,8 +894,9 @@ string to fetch a specific version."
(name 'gnu-ftp)
(description "Updater for GNU packages only available via FTP")
(pred (lambda (package)
- (and (not (gnu-hosted? package))
- (pure-gnu-package? package))))
+ (false-if-networking-error
+ (and (not (gnu-hosted? package))
+ (pure-gnu-package? package)))))
(import import-release*)))
(define %savannah-updater
- branch master updated (3012dad9eb -> f5ea392b9c), guix-commits, 2023/01/08
- 02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors.,
guix-commits <=
- 01/11: gnu-maintenance: Factorize 'false-if-networking-failure'., guix-commits, 2023/01/08
- 07/11: gnu: python-jsonschema-next: Simplify package., guix-commits, 2023/01/08
- 04/11: refresh: Add CLI tests., guix-commits, 2023/01/08
- 09/11: gnu: python-proselint: Use official home page URL., guix-commits, 2023/01/08
- 06/11: gnu: Add python-pydicom., guix-commits, 2023/01/08
- 03/11: import: stackage: Catch networking errors in predicate., guix-commits, 2023/01/08
- 10/11: gnu: Add power-profiles-daemon., guix-commits, 2023/01/08
- 05/11: gnu: Add gdcm., guix-commits, 2023/01/08
- 08/11: gnu: clamav: Update to 0.103.7., guix-commits, 2023/01/08
- 11/11: gnu: Add vkmark., guix-commits, 2023/01/08