From 6203c9e41abd67a522824c76efff26ef8b12561c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Jul 2008 13:09:45 +0000 Subject: add debug message in --debug mode --- urpm/parallel_ssh.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm/parallel_ssh.pm') diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm index 0fdb0dd7..d2a55513 100644 --- a/urpm/parallel_ssh.pm +++ b/urpm/parallel_ssh.pm @@ -75,6 +75,8 @@ sub urpm_popen { my $fh = _ssh_urpm_popen($urpm, $node, $cmd, $para); while (my $s = <$fh>) { + chomp $s; + $urpm->{debug}("parallel_ssh: $node: received: $s") if $urpm->{debug}; $do->($node, $s) or last; } close $fh or $urpm->{fatal}(1, N("host %s does not have a good version of urpmi (%d)", $node, $? >> 8)); -- cgit v1.2.1