[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: lint: 'refresh' gracefully handles lack of networking access.
From: |
Ludovic Courtès |
Subject: |
03/06: lint: 'refresh' gracefully handles lack of networking access. |
Date: |
Sat, 28 Oct 2017 03:46:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 6d6d19322124dcd963e801453ed026620634d0b3
Author: Ludovic Courtès <address@hidden>
Date: Fri Oct 27 14:27:47 2017 -0700
lint: 'refresh' gracefully handles lack of networking access.
* guix/scripts/lint.scm (check-for-updates): Wrap
'package-latest-release*' call in 'with-networking-fail-safe'.
---
guix/scripts/lint.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index ec6446e..8840b1a 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -869,7 +869,11 @@ the NIST server non-fatal."
(define (check-for-updates package)
"Check if there is an update available for PACKAGE."
- (match (package-latest-release* package (force %updaters))
+ (match (with-networking-fail-safe
+ (format #f (G_ "while retrieving upstream info for '~a'")
+ (package-name package))
+ #f
+ (package-latest-release* package (force %updaters)))
((? upstream-source? source)
(when (version>? (upstream-source-version source)
(package-version package))
- branch master updated (ed1f071 -> 34b1f33), Ludovic Courtès, 2017/10/28
- 02/06: lint: Extract network-related exception handling., Ludovic Courtès, 2017/10/28
- 06/06: graph: Remove mention of Graphviz from the summary line., Ludovic Courtès, 2017/10/28
- 05/06: import: elpa: Do not abort when failing to download the archive., Ludovic Courtès, 2017/10/28
- 04/06: import: github: Gracefully handle multiple-URL origins., Ludovic Courtès, 2017/10/28
- 03/06: lint: 'refresh' gracefully handles lack of networking access.,
Ludovic Courtès <=
- 01/06: scripts: Factorize option parsing sans 'GUIX_BUILD_OPTIONS'., Ludovic Courtès, 2017/10/28