guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: lint: Correct use of 'with-networking-fail-safe'.


From: guix-commits
Subject: 02/04: lint: Correct use of 'with-networking-fail-safe'.
Date: Tue, 27 Aug 2019 18:27:24 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 58d5f280a36e1cfddfa999d320c285726d8a8bc1
Author: Ludovic Courtès <address@hidden>
Date:   Tue Aug 27 23:59:48 2019 +0200

    lint: Correct use of 'with-networking-fail-safe'.
    
    Fixes <https://bugs.gnu.org/37160>.
    Reported by Jonathan Brielmaier <address@hidden>.
    
    * guix/lint.scm (check-for-updates): Make sure the first argument to
    'with-networking-fail-safe' is the whole error message.
---
 guix/lint.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/lint.scm b/guix/lint.scm
index 7a2bf5a..212ff70 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1008,8 +1008,8 @@ the NIST server non-fatal."
 (define (check-for-updates package)
   "Check if there is an update available for PACKAGE."
   (match (with-networking-fail-safe
-          (G_ "while retrieving upstream info for '~a'")
-          (list (package-name package))
+          (format #f (G_ "while retrieving upstream info for '~a'")
+                  (package-name package))
           #f
           (package-latest-release* package (force %updaters)))
     ((? upstream-source? source)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]