guix-commits
[Top][All Lists]
Advanced

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

03/05: download: Remove spurious warning about 'https_proxy'.


From: Ludovic Courtès
Subject: 03/05: download: Remove spurious warning about 'https_proxy'.
Date: Fri, 17 Jul 2015 22:25:51 +0000

civodul pushed a commit to branch master
in repository guix.

commit 4f7b564adbc09267fa61ee93292e2fc8a470f9cd
Author: Ludovic Courtès <address@hidden>
Date:   Fri Jul 17 22:31:12 2015 +0200

    download: Remove spurious warning about 'https_proxy'.
    
    * guix/build/download.scm (open-connection-for-uri)[with-https-proxy]: Warn
      about 'https_proxy' only when 'getenv' returns a non-empty string.
---
 guix/build/download.scm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/guix/build/download.scm b/guix/build/download.scm
index 65d18eb..ae59b01 100644
--- a/guix/build/download.scm
+++ b/guix/build/download.scm
@@ -231,7 +231,8 @@ host name without trailing dot."
                                (resolve-interface '(web client))
                                'current-http-proxy))
                          (parameterize ((current-http-proxy #f))
-                           (when (getenv "https_proxy")
+                           (when (and=> (getenv "https_proxy")
+                                        (negate string-null?))
                              (format (current-error-port)
                                      "warning: 'https_proxy' is ignored~%"))
                            (thunk))



reply via email to

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