summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-28 14:27:15 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-28 14:27:15 +0000
commit1b2ac0c25bd8ee3054bde3e94b681024e1c1071a (patch)
tree6e3b9e4d4f06a93c2e4da60c6fab79f6bbb04053 /urpm.pm
parent76315e89dec8973cda69d0df8d71291f5b4efc02 (diff)
downloadurpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar
urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.gz
urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.bz2
urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.tar.xz
urpmi-1b2ac0c25bd8ee3054bde3e94b681024e1c1071a.zip
allow transaction number to be restored.
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm7
1 files changed, 6 insertions, 1 deletions
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 (<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).