summaryrefslogtreecommitdiff
path: root/guix/build/download.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-03-17 23:41:37 +0100
committerLudovic Courtès <ludo@gnu.org>2017-03-18 00:39:50 +0100
commit4fd06a4dd1d4a894b96e586cef594270f8bbb88f (patch)
treefe9ed8b141d4606e4153e0a476bfb8694b64869d /guix/build/download.scm
parent36626c556ed75219bce196ac93d148f6b9af984c (diff)
downloadguix-patches-4fd06a4dd1d4a894b96e586cef594270f8bbb88f.tar
guix-patches-4fd06a4dd1d4a894b96e586cef594270f8bbb88f.tar.gz
http-client: Avoid name clash with 'open-connection-for-uri' in 2.2.0.
* guix/build/download.scm (open-connection-for-uri): Add note about same-named binding in Guile 2.2.0. * guix/http-client.scm: Use 'guix:open-connection-for-uri' for the procedure coming from (guix build download). * guix/scripts/lint.scm: Likewise. * guix/scripts/substitute.scm: Likewise.
Diffstat (limited to 'guix/build/download.scm')
-rw-r--r--guix/build/download.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/build/download.scm b/guix/build/download.scm
index d956a9f33e..36c815c167 100644
--- a/guix/build/download.scm
+++ b/guix/build/download.scm
@@ -464,6 +464,9 @@ ETIMEDOUT error is raised."
"Like 'open-socket-for-uri', but also handle HTTPS connections. The
resulting port must be closed with 'close-connection'. When
VERIFY-CERTIFICATE? is true, verify HTTPS server certificates."
+ ;; Note: Guile 2.2.0's (web client) has a same-named export that's actually
+ ;; undefined. See Guile commit 011669af3b428e5626f7bbf66b11d57d9768c047.
+
(define https?
(eq? 'https (uri-scheme uri)))