From f53ad58e60ff5102010996379da1da1abfdf8cfe Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 16 Jul 2004 11:00:45 +0000 Subject: fix predicted time when there is an error installing packages --- perl-install/install_steps_gtk.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/install_steps_gtk.pm') diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index a24b8d997..fad541525 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -612,6 +612,7 @@ If you don't have it, press Cancel to avoid installation from this Cd-Rom.", $na catch_cdie { $install_result = $o->install_steps::installPackages($packages) } sub { log::l("catch_cdie: $@"); + my $time = time(); if ($@ =~ /^error ordering package list: (.*)/) { $o->ask_yesorno('', [ N("There was an error ordering packages:"), $1, N("Go on anyway?") ], 1) and return 1; @@ -622,6 +623,8 @@ N("There was an error installing packages:"), $1, N("Go on anyway?") ], 1) and r ${$_[0]} = "already displayed"; } $w->destroy; + #- add the elapsed time (otherwise the predicted time will be rubbish) + $start_time += time() - $time; 0; }; if ($pkgs::cancel_install) { -- cgit v1.2.1