summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 18:09:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 18:09:21 +0000
commit70d3120ac8df666ef3ddb47f7eae3174aa8254d0 (patch)
tree775ba4defcd290141c869b06d6d4ea2890932fe3
parentc104c5fb1786600ea5c58ca84869eb965e9b9e2d (diff)
downloadurpmi-70d3120ac8df666ef3ddb47f7eae3174aa8254d0.tar
urpmi-70d3120ac8df666ef3ddb47f7eae3174aa8254d0.tar.gz
urpmi-70d3120ac8df666ef3ddb47f7eae3174aa8254d0.tar.bz2
urpmi-70d3120ac8df666ef3ddb47f7eae3174aa8254d0.tar.xz
urpmi-70d3120ac8df666ef3ddb47f7eae3174aa8254d0.zip
cleanup
-rw-r--r--urpm/parallel_ssh.pm9
1 files changed, 3 insertions, 6 deletions
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}}};