[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74542] [PATCH v2 03/16] gnu-maintenance: Savannah/Xorg updaters no
From: |
Ludovic Courtès |
Subject: |
[bug#74542] [PATCH v2 03/16] gnu-maintenance: Savannah/Xorg updaters no longer abort on network errors. |
Date: |
Fri, 29 Nov 2024 10:40:06 +0100 |
Previously these updaters would fail upon networking error, causing the
whole process to abort:
$ guix refresh coreutils libgcrypt
guix refresh: error: connect*: Connection refused
* guix/gnu-maintenance.scm (import-release*, import-xorg-release): Wrap
in ‘false-if-networking-error’.
Change-Id: I8d309bf8662e2d46460585b4a1b7da0a4f2e8907
---
guix/gnu-maintenance.scm | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index f34dcfc13f..866b960a4a 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -469,10 +469,12 @@ (define* (import-release* package #:key (version #f))
\"emacs-auctex\", for instance.)"
(let-values (((server directory)
(ftp-server/directory package)))
- (false-if-ftp-error (import-release (package-upstream-name package)
- #:version version
- #:server server
- #:directory directory))))
+ (false-if-networking-error
+ (false-if-ftp-error
+ (import-release (package-upstream-name package)
+ #:version version
+ #:server server
+ #:directory directory)))))
;;;
@@ -913,13 +915,14 @@ (define* (import-xorg-release package #:key (version #f))
"Return the latest release of PACKAGE. Optionally include a VERSION string
to fetch a specific version."
(let ((uri (string->uri (origin-uri (package-source package)))))
- (false-if-ftp-error
- (import-ftp-release
- (package-name package)
- #:version version
- #:server "ftp.freedesktop.org"
- #:directory
- (string-append "/pub/xorg/" (dirname (uri-path uri)))))))
+ (false-if-networking-error
+ (false-if-ftp-error
+ (import-ftp-release
+ (package-name package)
+ #:version version
+ #:server "ftp.freedesktop.org"
+ #:directory
+ (string-append "/pub/xorg/" (dirname (uri-path uri))))))))
(define* (import-kernel.org-release package #:key (version #f))
"Return the latest release of PACKAGE, a Linux kernel package.
--
2.46.0
- [bug#74542] [PATCH v2 09/16] gnu: Update updater properties for GnuPG-related packages., (continued)
- [bug#74542] [PATCH v2 09/16] gnu: Update updater properties for GnuPG-related packages., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 06/16] guix build: Add ‘--dependents’., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 07/16] import: gnome: Keep going upon HTTP errors., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 11/16] gnu: git-minimal: Add ‘upstream-name’ property., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 02/16] gnu-maintenance: ‘import-html-release’ doesn’t abort upon HTTP 404., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 12/16] gnu-maintenance: ‘generic-html’ update honors <base href="…">., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 13/16] guix build: Validate that the file passed to ‘-m’ returns a manifest., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 14/16] transformations: ‘package-with-upstream-version’ can preserve patches., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 15/16] transformations: Add #:authenticate? to ‘package-with-upstream-version’., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 16/16] etc: Add upgrade manifest., Ludovic Courtès, 2024/11/29
- [bug#74542] [PATCH v2 03/16] gnu-maintenance: Savannah/Xorg updaters no longer abort on network errors.,
Ludovic Courtès <=