diff options
author | Francois Pons <fpons@mandriva.com> | 1999-11-19 11:38:45 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 1999-11-19 11:38:45 +0000 |
commit | bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2 (patch) | |
tree | d485b3c253e2a1b2cc3c32b6243eb426f695d3ea /perl-install/install_steps_gtk.pm | |
parent | a672385d6e1ae6b19e7181aaa5767e31f7e669ef (diff) | |
download | drakx-bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2.tar drakx-bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2.tar.gz drakx-bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2.tar.bz2 drakx-bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2.tar.xz drakx-bfe37c13141bc718a42c0d8b8c3bbff03bfc5ff2.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/install_steps_gtk.pm')
-rw-r--r-- | perl-install/install_steps_gtk.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index a958d1553..fda1686cb 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -507,16 +507,16 @@ sub installPackages { $msg->set(_("Preparing installation")); $w->sync; - my $old = \&log::ld; - local *log::ld = sub { + my $old = \&pkgs::installCallback; + local *pkgs::installCallback = sub { my $m = shift; - if ($m =~ /^starting installation:/) { + if ($m =~ /^Starting installation/) { $nb = $_[0]; - $total_size = $_[2]; $current_total_size = 0; + $total_size = $_[1]; $current_total_size = 0; $start_time = time(); - $msg->set(join '', @_); + $msg->set(_("%d packages", $nb) . _(", %U bytes", $total_size)); $w->flush; - } elsif ($m =~ /^starting installing/) { + } elsif ($m =~ /^Starting installing package/) { $progress->update(0); my $name = $_[0]; $msg->set(_("Installing package %s", $name)); @@ -524,11 +524,11 @@ sub installPackages { $last_size = c::headerGetEntry($o->{packages}{$name}{header}, 'size'); $text->set((split /\n/, c::headerGetEntry($o->{packages}{$name}{header}, 'summary'))[0] || ''); $w->flush; - } elsif ($m =~ /^progressing installation/) { - $progress->update($_[2] ? $_[0] / $_[2] : 0); + } elsif ($m =~ /^Progressing installing package/) { + $progress->update($_[2] ? $_[1] / $_[2] : 0); my $dtime = time() - $start_time; - my $ratio = $total_size ? ($_[0] + $current_total_size) / $total_size : 0; + my $ratio = $total_size ? ($_[1] + $current_total_size) / $total_size : 0; my $total_time = $ratio ? $dtime / $ratio : time(); $progress_total->update($ratio); @@ -538,7 +538,7 @@ sub installPackages { $last_dtime = $dtime; } $w->flush; - } else { goto $old } + } else { unshift @_, $m; goto $old } }; catch_cdie { $o->install_steps::installPackages($packages); } sub { |