guix download: Honor mirrors when using '-o'.

Previously "guix download -o x mirror://gnu/…" would fail.

* guix/scripts/download.scm (download-to-file): Pass #:mirrors to
'url-fetch'.
master
Ludovic Courtès 2017-09-14 23:16:22 +02:00
parent db7f7eb8ca
commit c105653329
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
((or 'file #f)
(copy-file (uri-path uri) file))
(_
(url-fetch url file)))
(url-fetch url file #:mirrors %mirrors)))
file))
(define* (download-to-store* url #:key (verify-certificate? #t))