From 4db572062ccf318a6524abb8da046592a570eb94 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Feb 2014 12:20:12 +0100 Subject: download-via-ssh: Show where we're downloading from --- src/download-via-ssh/download-via-ssh.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/download-via-ssh/download-via-ssh.cc b/src/download-via-ssh/download-via-ssh.cc index 68fdeb4ca25e..86cbb2057359 100644 --- a/src/download-via-ssh/download-via-ssh.cc +++ b/src/download-via-ssh/download-via-ssh.cc @@ -109,7 +109,8 @@ void run(Strings args) std::cout << std::endl; - std::pair pipes = connect(settings.sshSubstituterHosts.front()); + string host = settings.sshSubstituterHosts.front(); + std::pair pipes = connect(host); /* Exchange the greeting */ writeInt(SERVE_MAGIC_1, pipes.first); @@ -130,6 +131,7 @@ void run(Strings args) else { Path storePath = *++i; Path destPath = *++i; + printMsg(lvlError, format("downloading `%1%' via SSH from `%2%'...") % storePath % host); substitute(pipes, storePath, destPath); } else -- cgit 1.4.1