From f79e8f662a6ae7734419a6d5e642c0645588feae Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 9 Jul 2008 18:06:57 +0000 Subject: cleanup --- urpm/parallel_ssh.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'urpm') 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 -- cgit v1.2.1