From ad716378dc19c9e5282ce2de77a323a8d4178cd0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 17 Aug 2014 14:28:17 +0200 Subject: [PATCH] Fix download-via-ssh http://hydra.nixos.org/build/13286020 --- src/download-via-ssh/download-via-ssh.cc | 6 ++++-- 1 file 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 & 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;