summaryrefslogtreecommitdiffstats
path: root/gurpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-13 11:06:07 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-13 11:06:07 +0000
commit2b40929e18123422688b1d0dad8a55708a7b657f (patch)
tree15ae02d4bfeb89833acf220a8869bf8dfcd720af /gurpmi
parent398e704173e5c61834150ce26696df5d63324970 (diff)
downloadurpmi-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--gurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gurpmi b/gurpmi
index d245315a..a331097f 100644
--- a/gurpmi
+++ b/gurpmi
@@ -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);