guix-commits
[Top][All Lists]
Advanced

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

133/376: Fix download-via-ssh


From: Ludovic Courtès
Subject: 133/376: Fix download-via-ssh
Date: Wed, 28 Jan 2015 22:04:32 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit ad716378dc19c9e5282ce2de77a323a8d4178cd0
Author: Eelco Dolstra <address@hidden>
Date:   Sun Aug 17 14:28:17 2014 +0200

    Fix download-via-ssh
    
    http://hydra.nixos.org/build/13286020
---
 src/download-via-ssh/download-via-ssh.cc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/download-via-ssh/download-via-ssh.cc 
b/src/download-via-ssh/download-via-ssh.cc
index ac0f582..3f6f07f 100644
--- a/src/download-via-ssh/download-via-ssh.cc
+++ b/src/download-via-ssh/download-via-ssh.cc
@@ -94,11 +94,13 @@ static void query(std::pair<FdSink, FdSource> & pipes)
 int main(int argc, char * * argv)
 {
     return handleExceptions(argv[0], [&]() {
-        initNix();
-
         if (argc < 2)
             throw UsageError("download-via-ssh requires an argument");
 
+        initNix();
+
+        settings.update();
+
         if (settings.sshSubstituterHosts.empty())
             return;
 



reply via email to

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