From 2b40929e18123422688b1d0dad8a55708a7b657f Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 13 Jan 2005 11:06:07 +0000 Subject: Fix bug 12998 : gurpmi doesn't count correcly the number of packages to install --- gurpmi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gurpmi') 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); -- cgit v1.2.1