diff options
author | Francois Pons <fpons@mandriva.com> | 2003-08-28 14:27:15 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-08-28 14:27:15 +0000 |
commit | 1b2ac0c25bd8ee3054bde3e94b681024e1c1071a (patch) | |
tree | 6e3b9e4d4f06a93c2e4da60c6fab79f6bbb04053 | |
parent | 76315e89dec8973cda69d0df8d71291f5b4efc02 (diff) | |
download | urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.gz urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.bz2 urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.xz urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.zip |
allow transaction number to be restored.
-rw-r--r-- | urpm.pm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2872,7 +2872,11 @@ sub install { my @l; while (<CHILD_RETURNS>) { 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). |