diff options
author | Francois Pons <fpons@mandriva.com> | 2002-09-03 10:11:21 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-09-03 10:11:21 +0000 |
commit | 129c225292f4d84ca37bce2236dbcfdc12d0ceac (patch) | |
tree | beb0c8d98badb88f8e818a3f991d9cb692434657 /perl-install/install_steps_interactive.pm | |
parent | 504dc8888cbdb3b9f140c71ba9962a4867a1c248 (diff) | |
download | drakx-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar drakx-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.gz drakx-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.bz2 drakx-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.xz drakx-129c225292f4d84ca37bce2236dbcfdc12d0ceac.zip |
fixed too higher percentage.
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index f1cdb27c2..e4c965f82 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -757,7 +757,7 @@ If only some CDs are missing, unselect them, then click Ok."), #------------------------------------------------------------------------------ sub installPackages { my ($o, $packages) = @_; - my ($current, $total) = 0; + my ($current, $total) = (0, 0); my $w = $o->wait_message(_("Installing"), _("Preparing installation")); @@ -765,7 +765,7 @@ sub installPackages { local *pkgs::installCallback = sub { my ($data, $type, $id, $subtype, $_amount, $_total) = @_; if ($type eq 'user' && $subtype eq 'install') { - $total = $_amount; + $total = $_total; } elsif ($type eq 'inst' && $subtype eq 'start') { my $p = $data->{depslist}[$id]; $w->set(_("Installing package %s\n%d%%", $p->name, $total && 100 * $current / $total)); |