summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-03 10:11:21 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-03 10:11:21 +0000
commit129c225292f4d84ca37bce2236dbcfdc12d0ceac (patch)
treebeb0c8d98badb88f8e818a3f991d9cb692434657 /perl-install/install_steps_interactive.pm
parent504dc8888cbdb3b9f140c71ba9962a4867a1c248 (diff)
downloaddrakx-backup-do-not-use-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar
drakx-backup-do-not-use-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.gz
drakx-backup-do-not-use-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.bz2
drakx-backup-do-not-use-129c225292f4d84ca37bce2236dbcfdc12d0ceac.tar.xz
drakx-backup-do-not-use-129c225292f4d84ca37bce2236dbcfdc12d0ceac.zip
fixed too higher percentage.
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm4
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));