diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-23 08:10:55 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-23 08:10:55 +0000 |
commit | 5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141 (patch) | |
tree | 9d4f3b4871147e7ef94b4389642a73feb1f93072 /urpmi | |
parent | 21f4f7adc6ee28d6599ea7647d789cd6de59d0a4 (diff) | |
download | urpmi-5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141.tar urpmi-5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141.tar.gz urpmi-5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141.tar.bz2 urpmi-5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141.tar.xz urpmi-5e4f76f2150e48b3f18d9a3d2e05ccc379fd9141.zip |
- urpmi: display the total number of packages to be installed
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -485,7 +485,7 @@ foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$sta } } if ($env) { - my $msg = N("To satisfy dependencies, the following packages are going to be installed (%d MB)", toMb($sum)); + my $msg = N("To satisfy dependencies, the following %d packages are going to be installed (%d MB)", $#to_install+1, toMb($sum)); my $p = join "\n", @to_install; print STDERR "$msg:\n$p\n"; exit 0; #- exit now for specific environment. @@ -494,7 +494,7 @@ if (@root_only) { print STDERR N("You need to be root to install the following dependencies:\n%s\n", join ' ', @root_only); exit 1; } elsif (!$urpm->{options}{auto} && ($ask_user || $urpm::args::options{X}) && @to_install) { - my $msg = N("To satisfy dependencies, the following packages are going to be installed (%d MB)", toMb($sum)); + my $msg = N("To satisfy dependencies, the following %d packages are going to be installed (%d MB)", $#to_install+1, toMb($sum)); my $msg2 = N("Is this OK?"); my $p = join "\n", @to_install; if ($urpm::args::options{X}) { |