1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

nix-copy-closure: Move the progressViewer directly adjacent to the ssh call so that network progress is what's measured

This commit is contained in:
Shea Levy 2012-03-29 18:58:14 +02:00 committed by Eelco Dolstra
parent 055e803851
commit 34a85c5405
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ else { # Copy FROM the remote machine.
$progressViewer = "$progressViewer |" if $progressViewer ne "";
unless ($dryRun) {
my $extraOpts = $sign ? "--sign" : "";
system("set -f; ssh $sshHost @sshOpts 'nix-store --export $extraOpts @missing $compressor' | $decompressor $progressViewer $Nix::Config::binDir/nix-store --import > /dev/null") == 0
system("set -f; ssh $sshHost @sshOpts 'nix-store --export $extraOpts @missing $compressor' | $progressViewer $decompressor $Nix::Config::binDir/nix-store --import > /dev/null") == 0
or die "copying store paths from remote machine `$sshHost' failed: $?";
}
}