aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-17 14:28:17 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-17 14:28:17 +0200
commitad716378dc19c9e5282ce2de77a323a8d4178cd0 (patch)
treedbbd4e97c33230c6a333ec7e4e3c1ecfff9c6150
parent3e5dbb24337d8416cfe46484eb2692811546a9c1 (diff)
Fix download-via-ssh
http://hydra.nixos.org/build/13286020
-rw-r--r--src/download-via-ssh/download-via-ssh.cc6
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 ac0f5826d..3f6f07f87 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;