guix-commits
[Top][All Lists]
Advanced

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

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


From: Ludovic Courtès
Subject: 01/01: guix download: Honor mirrors when using '-o'.
Date: Thu, 14 Sep 2017 17:34:46 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c105653329bba7e71b960c782515ca23edf83e3f
Author: Ludovic Courtès <address@hidden>
Date:   Thu Sep 14 23:16:22 2017 +0200

    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'.
---
 guix/scripts/download.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/download.scm b/guix/scripts/download.scm
index f40213b..8225f82 100644
--- a/guix/scripts/download.scm
+++ b/guix/scripts/download.scm
@@ -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))



reply via email to

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