diff options
author | Francois Pons <fpons@mandriva.com> | 2002-12-13 11:18:16 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-12-13 11:18:16 +0000 |
commit | 09c2ed303d2475d08f658cba0f360b1cbc6b57b8 (patch) | |
tree | a0cd61bb5668930c9acc8e6abdd8b9e831e09b32 /urpm/parallel_ssh.pm | |
parent | 663f63199bf2c2216952a675f411237a29f7f661 (diff) | |
download | urpmi-09c2ed303d2475d08f658cba0f360b1cbc6b57b8.tar urpmi-09c2ed303d2475d08f658cba0f360b1cbc6b57b8.tar.gz urpmi-09c2ed303d2475d08f658cba0f360b1cbc6b57b8.tar.bz2 urpmi-09c2ed303d2475d08f658cba0f360b1cbc6b57b8.tar.xz urpmi-09c2ed303d2475d08f658cba0f360b1cbc6b57b8.zip |
4.1-17mdk
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r-- | urpm/parallel_ssh.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm index a135f18a..4d66b372 100644 --- a/urpm/parallel_ssh.pm +++ b/urpm/parallel_ssh.pm @@ -8,6 +8,7 @@ sub parallel_register_rpms { my $sources = join ' ', map { "'$_'" } @files; $urpm->{log}("parallel_ssh: scp $sources $_:$urpm->{cachedir}/rpms"); system "scp $sources $_:$urpm->{cachedir}/rpms"; + $? == 0 or $urpm->{fatal}(1, _("scp failed on host %s", $_)); } #- keep trace of direct files. @@ -25,6 +26,7 @@ sub parallel_resolve_dependencies { foreach (keys %{$parallel->{nodes}}) { $urpm->{log}("parallel_ssh: scp -q '$synthesis' '$_:$synthesis'"); system "scp -q '$synthesis' '$_:$synthesis'"; + $? == 0 or $urpm->{fatal}(1, _("scp failed on host %s", $_)); } $parallel->{synthesis} = $synthesis; @@ -75,7 +77,7 @@ sub parallel_resolve_dependencies { while ($_ = <F>) { chomp; if (/^\@removing\@(.*)/) { - $state->{ask_remove}{$1}{$node}; + $state->{ask_remove}{$1}{$node} = undef; } elsif (/\|/) { #- distant urpmq returned a choices, check if it has already been chosen #- or continue iteration to make sure no more choices are left. @@ -117,6 +119,7 @@ sub parallel_install { my $sources = join ' ', map { "'$_'" } values %$install, values %$upgrade; $urpm->{log}("parallel_ssh: scp $sources $_:$urpm->{cachedir}/rpms"); system "scp $sources $_:$urpm->{cachedir}/rpms"; + $? == 0 or $urpm->{fatal}(1, _("scp failed on host %s", $_)); } my %bad_nodes; |