From eb1eb2d3e28d5d9c4ea86e304c2eae4a7c0968b2 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 21 Mar 2006 18:23:18 +0000 Subject: Forgot to transmit the second counter to parent. Aar. --- urpm.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 43c1c8af..ab428e17 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2949,8 +2949,9 @@ sub install { my @l; while () { chomp; - if (/^::logger_id:(\d+)/) { + if (/^::logger_id:(\d+)(?::(\d+))?/) { $urpm->{logger_id} = $1; + $2 and $urpm->{logger_count} = $2; } else { push @l, $_; } @@ -3052,7 +3053,7 @@ sub install { #- now exit or return according to current status. if (defined $pid && !$pid) { #- child process - print ERROR_OUTPUT "::logger_id:$urpm->{logger_id}\n"; #- allow main urpmi to know transaction numbering... + print ERROR_OUTPUT "::logger_id:$urpm->{logger_id}:$urpm->{logger_count}\n"; #- allow main urpmi to know transaction numbering... print ERROR_OUTPUT "$_\n" foreach @l; close ERROR_OUTPUT; #- keep safe exit now (with destructor call). -- cgit v1.2.1