1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Fixing the pv position regarding compression

Problem noticed by niksnut.
This commit is contained in:
Lluís Batlle i Rossell 2013-05-01 22:44:37 +04:00 committed by Eelco Dolstra
parent 7391533ea5
commit e6c44d166a
2 changed files with 2 additions and 2 deletions

View file

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