diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-10 16:21:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-10 16:21:00 +0000 |
commit | 9c7623083e6b9dc7336cc1e9de1ea7cb90b08939 (patch) | |
tree | 1aa8b04c03af70d64e865110404c5299fa2b4ba2 /urpm/parallel_ssh.pm | |
parent | 53046fcdc6f505401adb0b7f42a2448f0141247a (diff) | |
download | urpmi-9c7623083e6b9dc7336cc1e9de1ea7cb90b08939.tar urpmi-9c7623083e6b9dc7336cc1e9de1ea7cb90b08939.tar.gz urpmi-9c7623083e6b9dc7336cc1e9de1ea7cb90b08939.tar.bz2 urpmi-9c7623083e6b9dc7336cc1e9de1ea7cb90b08939.tar.xz urpmi-9c7623083e6b9dc7336cc1e9de1ea7cb90b08939.zip |
urpm_popen errors are not fatal by default on ssh, only for urpmq
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r-- | urpm/parallel_ssh.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm index d3b29570..23af44cc 100644 --- a/urpm/parallel_ssh.pm +++ b/urpm/parallel_ssh.pm @@ -73,6 +73,8 @@ sub _ssh_urpm_popen { sub urpm_popen { my ($parallel, $urpm, $cmd, $para, $do) = @_; + my @errors; + foreach my $node (keys %{$parallel->{nodes}}) { my $fh = _ssh_urpm_popen($urpm, $node, $cmd, $para); @@ -81,9 +83,11 @@ sub urpm_popen { $urpm->{debug}("parallel_ssh: $node: received: $s") if $urpm->{debug}; $do->($node, $s) and last; } - close $fh or $urpm->{fatal}(1, N("host %s does not have a good version of urpmi (%d)", $node, $? >> 8)); + close $fh or push @errors, N("%s failed on host %s (maybe it does not have a good version of urpmi?) (exit code: %d)", $cmd, $node, $? >> 8); $urpm->{debug}("parallel_ssh: $node: $cmd finished") if $urpm->{debug}; } + + @errors; } sub run_urpm_command { |