[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: import: stackage: Catch networking errors in predicate.
From: |
guix-commits |
Subject: |
03/11: import: stackage: Catch networking errors in predicate. |
Date: |
Sun, 8 Jan 2023 10:14:20 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 2e9c0e1ff6a87f1266ee50049c2d9c7bd736d131
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Jan 3 17:11:10 2023 +0100
import: stackage: Catch networking errors in predicate.
* guix/import/stackage.scm (stackage-lts-package?): Wrap body in
'false-if-networking-error'.
---
guix/import/stackage.scm | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm
index 70d3e271f4..c0284e48a4 100644
--- a/guix/import/stackage.scm
+++ b/guix/import/stackage.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2021 Xinglu Chem <public@yoctocell.xyz>
-;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021, 2023, 2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;;
;;; This file is part of GNU Guix.
@@ -170,12 +170,13 @@ PACKAGE or #f if the package is not included in the
Stackage LTS release."
(define (stackage-lts-package? package)
"Return whether PACKAGE is available on the default Stackage LTS release."
(and (hackage-package? package)
- (let ((packages (stackage-lts-packages
- (stackage-lts-info-fetch %default-lts-version)))
- (hackage-name (guix-package->hackage-name package)))
- (find (lambda (package)
- (string=? (stackage-package-name package) hackage-name))
- packages))))
+ (false-if-networking-error
+ (let ((packages (stackage-lts-packages
+ (stackage-lts-info-fetch %default-lts-version)))
+ (hackage-name (guix-package->hackage-name package)))
+ (find (lambda (package)
+ (string=? (stackage-package-name package) hackage-name))
+ packages)))))
(define %stackage-updater
(upstream-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, 2023/01/08
- 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 <=
- 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