summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ssh.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 20:38:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 20:38:20 +0000
commitacc7066459c55586deceb4c876b13e8ecf062b1b (patch)
tree245a1552526ae833253cf7738d148c51d597b456 /urpm/parallel_ssh.pm
parent7e9a819eb4b4622a6ed282ef33cd2cf1ba334375 (diff)
downloadurpmi-acc7066459c55586deceb4c876b13e8ecf062b1b.tar
urpmi-acc7066459c55586deceb4c876b13e8ecf062b1b.tar.gz
urpmi-acc7066459c55586deceb4c876b13e8ecf062b1b.tar.bz2
urpmi-acc7066459c55586deceb4c876b13e8ecf062b1b.tar.xz
urpmi-acc7066459c55586deceb4c876b13e8ecf062b1b.zip
rename var
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r--urpm/parallel_ssh.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm
index 1d846dc9..f7512e51 100644
--- a/urpm/parallel_ssh.pm
+++ b/urpm/parallel_ssh.pm
@@ -185,16 +185,16 @@ sub parallel_resolve_dependencies {
sub parallel_install {
my ($parallel, $urpm, undef, $install, $upgrade, %options) = @_;
- foreach (keys %{$parallel->{nodes}}) {
+ foreach my $host (keys %{$parallel->{nodes}}) {
my @sources = (values %$install, values %$upgrade);
- $urpm->{log}("parallel_ssh: scp @sources $_:$urpm->{cachedir}/rpms");
- if (_localhost($_)) {
+ $urpm->{log}("parallel_ssh: scp @sources $host:$urpm->{cachedir}/rpms");
+ if (_localhost($host)) {
my @f = grep { ! m!^$urpm->{cachedir}/rpms! } @sources;
@f and system('cp', @f, "$urpm->{cachedir}/rpms");
} else {
- system('scp', @sources, "$_:$urpm->{cachedir}/rpms");
+ system('scp', @sources, "$host:$urpm->{cachedir}/rpms");
}
- $? == 0 or $urpm->{fatal}(1, N("scp failed on host %s (%d)", $_, $? >> 8));
+ $? == 0 or $urpm->{fatal}(1, N("scp failed on host %s (%d)", $host, $? >> 8));
}
my %bad_nodes;