mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51: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:
parent
055e803851
commit
34a85c5405
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ sub copyTo {
|
|||
if (scalar @missing > 0) {
|
||||
print STDERR "copying ", scalar @missing, " missing paths to ‘$sshHost’...\n";
|
||||
unless ($dryRun) {
|
||||
open SSH, "| $progressViewer $compressor ssh $sshHost @{$sshOpts} '$decompressor nix-store --import' > /dev/null" or die;
|
||||
open SSH, "| $compressor $progressViewer ssh $sshHost @{$sshOpts} '$decompressor nix-store --import' > /dev/null" or die;
|
||||
exportPaths(fileno(SSH), $sign, @missing);
|
||||
close SSH or die "copying store paths to remote machine `$sshHost' failed: $?";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue