From 70d3120ac8df666ef3ddb47f7eae3174aa8254d0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 9 Jul 2008 18:09:21 +0000 Subject: cleanup --- urpm/parallel_ssh.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'urpm') diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm index d887f4dd..d17bb061 100644 --- a/urpm/parallel_ssh.pm +++ b/urpm/parallel_ssh.pm @@ -104,13 +104,10 @@ sub parallel_find_remove { } #- build error list contains all the error returned by each node. - $urpm->{error_remove} = []; - foreach (keys %bad_nodes) { + $urpm->{error_remove} = [ map { my $msg = N("on node %s", $_); - foreach (@{$bad_nodes{$_}}) { - push @{$urpm->{error_remove}}, "$msg, $_"; - } - } + map { "$msg, $_" } @{$bad_nodes{$_}}; + } keys %bad_nodes ]; #- if at least one node has the package, it should be seen as unknown... delete @notfound{map { /^(.*)-[^-]*-[^-]*$/ } keys %{$state->{rejected}}}; -- cgit v1.2.1