diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-13 11:06:07 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-13 11:06:07 +0000 |
commit | 2b40929e18123422688b1d0dad8a55708a7b657f (patch) | |
tree | 15ae02d4bfeb89833acf220a8869bf8dfcd720af /gurpmi | |
parent | 398e704173e5c61834150ce26696df5d63324970 (diff) | |
download | urpmi-2b40929e18123422688b1d0dad8a55708a7b657f.tar urpmi-2b40929e18123422688b1d0dad8a55708a7b657f.tar.gz urpmi-2b40929e18123422688b1d0dad8a55708a7b657f.tar.bz2 urpmi-2b40929e18123422688b1d0dad8a55708a7b657f.tar.xz urpmi-2b40929e18123422688b1d0dad8a55708a7b657f.zip |
Fix bug 12998 : gurpmi doesn't count correcly the number of packages to install
Diffstat (limited to 'gurpmi')
-rw-r--r-- | gurpmi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -295,6 +295,7 @@ sub do_install_3 { foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]) { $pkg->arch ne 'src' and push @to_install, scalar $pkg->fullname; } + $urpm->{nb_install} = @to_install; @to_install > 1 ? ask_continue(N( "To satisfy dependencies, the following %d packages are going to be installed:\n%s\n", @@ -386,7 +387,7 @@ sub do_install_4 { if ($type eq 'trans') { $progress_label->set_label(N("Preparing...")); } else { - $progress_label->set_label(N("Installing package `%s' (%s/%s)...", $pkg->name, ++$progress_nb, $total_nb)); + $progress_label->set_label(N("Installing package `%s' (%s/%s)...", $pkg->name, ++$progress_nb, $urpm->{nb_install})); } } elsif ($subtype eq 'progress') { $progressbar->set_fraction($amount / $total); |