summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ssh.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 18:06:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 18:06:57 +0000
commitf79e8f662a6ae7734419a6d5e642c0645588feae (patch)
tree5df6c7c6df32c8e7b30d500f67e501a525cdc1d4 /urpm/parallel_ssh.pm
parente0de8211a7bc28605836b5b57024fcf6966bafd1 (diff)
downloadurpmi-f79e8f662a6ae7734419a6d5e642c0645588feae.tar
urpmi-f79e8f662a6ae7734419a6d5e642c0645588feae.tar.gz
urpmi-f79e8f662a6ae7734419a6d5e642c0645588feae.tar.bz2
urpmi-f79e8f662a6ae7734419a6d5e642c0645588feae.tar.xz
urpmi-f79e8f662a6ae7734419a6d5e642c0645588feae.zip
cleanup
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r--urpm/parallel_ssh.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm
index a1553b3a..2aaea7c7 100644
--- a/urpm/parallel_ssh.pm
+++ b/urpm/parallel_ssh.pm
@@ -35,10 +35,10 @@ sub parallel_register_rpms {
}
#- keep trace of direct files.
- foreach (@files) {
- my $basename = basename($_);
- $parallel->{line} .= "'$urpm->{cachedir}/rpms/$basename' ";
- }
+ $parallel->{line} .=
+ join(' ',
+ map { "'$_'" }
+ map { "$urpm->{cachedir}/rpms/" . basename($_) } @files);
}
#- parallel find_packages_to_remove