download: Simplify 'open-connection-for-uri' to support HTTP proxies.
authorLudovic Courtès <ludo@gnu.org>
Thu, 30 Apr 2015 20:13:04 +0000 (22:13 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 30 Apr 2015 22:06:17 +0000 (00:06 +0200)
commitd17551d9438c6fe5c9bc3674e39345f15dc0c0ac
tree227da47b85a7ba467b460538d1b1ecc6c610df82
parentcfaf863f15fca75b6c2cc81ae61d8c54ecd7cf28
download: Simplify 'open-connection-for-uri' to support HTTP proxies.

Partly fixes <http://bugs.gnu.org/20402>.
Reported by Joshua Randall <jcrandall@alum.mit.edu>.

* guix/build/download.scm (open-connection-for-uri): Rewrite to be a
  small wrapper around 'open-socket-for-uri'.  This procedure was
  initially introduced in d14ecda to work around the lack of NSS modules
  during bootstrap but that has become unnecessary since 0621349, which
  introduced a bootstrap Guile that uses static NSS modules (from commit
  d3b5972.)
  On Guile >= 2.0.10, this allows the 'http_proxy' environment variable
  to be used.
guix/build/download.scm