From 1b2ac0c25bd8ee3054bde3e94b681024e1c1071a Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 28 Aug 2003 14:27:15 +0000 Subject: allow transaction number to be restored. --- urpm.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'urpm.pm') diff --git a/urpm.pm b/urpm.pm index 427a0b6e..d2ab1d5a 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2872,7 +2872,11 @@ sub install { my @l; while () { chomp; - push @l, $_; + if (/^\::logger_id:(\d+)/) { + $urpm->{logger_id} = $1; + } else { + push @l, $_; + } } close CHILD_RETURNS; @@ -2960,6 +2964,7 @@ sub install { #- now exit or return according to current status. if (defined $pid) { + print ERROR_OUTPUT "::logger_id:$urpm->{logger_id}\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