summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ssh.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 18:05:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 18:05:25 +0000
commite0de8211a7bc28605836b5b57024fcf6966bafd1 (patch)
tree5ca6a9d1f5d5aa5513bb6d937c3d2c59bbceec08 /urpm/parallel_ssh.pm
parent1021d130193714dde925d80aea7a933bf7493118 (diff)
downloadurpmi-e0de8211a7bc28605836b5b57024fcf6966bafd1.tar
urpmi-e0de8211a7bc28605836b5b57024fcf6966bafd1.tar.gz
urpmi-e0de8211a7bc28605836b5b57024fcf6966bafd1.tar.bz2
urpmi-e0de8211a7bc28605836b5b57024fcf6966bafd1.tar.xz
urpmi-e0de8211a7bc28605836b5b57024fcf6966bafd1.zip
rename var, cleanup
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r--urpm/parallel_ssh.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm
index 2f12c545..a1553b3a 100644
--- a/urpm/parallel_ssh.pm
+++ b/urpm/parallel_ssh.pm
@@ -23,15 +23,15 @@ sub _host { &_localhost ? '' : "$_[0]:" }
sub parallel_register_rpms {
my ($parallel, $urpm, @files) = @_;
- foreach (keys %{$parallel->{nodes}}) {
- $urpm->{log}("parallel_ssh: scp @files $_:$urpm->{cachedir}/rpms");
- if (_localhost($_)) {
+ foreach my $host (keys %{$parallel->{nodes}}) {
+ $urpm->{log}("parallel_ssh: scp @files $host:$urpm->{cachedir}/rpms");
+ if (_localhost($host)) {
my @f = grep { ! m!^$urpm->{cachedir}/rpms! } @files;
- @f and system 'cp' => @f, "$urpm->{cachedir}/rpms";
+ @f and system('cp', @f, "$urpm->{cachedir}/rpms");
} else {
- system 'scp' => @files, "$_:$urpm->{cachedir}/rpms";
+ system('scp', @files, "$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));
}
#- keep trace of direct files.