diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-09 14:59:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-09 14:59:16 +0000 |
commit | d3e5064517757899a4e700cf27bf0226f4f496d0 (patch) | |
tree | 6b350791ebf225bffe98d6854c6594b1f4530462 | |
parent | 5a5a3ca687129a21b79ee623874ec1b927bb61e2 (diff) | |
download | urpmi-d3e5064517757899a4e700cf27bf0226f4f496d0.tar urpmi-d3e5064517757899a4e700cf27bf0226f4f496d0.tar.gz urpmi-d3e5064517757899a4e700cf27bf0226f4f496d0.tar.bz2 urpmi-d3e5064517757899a4e700cf27bf0226f4f496d0.tar.xz urpmi-d3e5064517757899a4e700cf27bf0226f4f496d0.zip |
we already computed the number of package (cosmetic)
-rwxr-xr-x | urpmi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -580,7 +580,7 @@ foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$sta } $urpm->{nb_install} = @to_install; if ($env) { - my $msg = @to_install == 1 ? N("To satisfy dependencies, the following package is going to be installed:") + my $msg = $urpm->{nb_install} == 1 ? N("To satisfy dependencies, the following package is going to be installed:") : N("To satisfy dependencies, the following packages are going to be installed:"); my $msg2 = P("(%d package, %d MB)", "(%d packages, %d MB)", $urpm->{nb_install}, $urpm->{nb_install}, toMb($sum)); my $p = join "\n", @to_install; @@ -590,8 +590,8 @@ if ($env) { if (@root_only) { print 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 && @to_install) { - my $msg = @to_install == 1 ? N("To satisfy dependencies, the following package is going to be installed:") +} elsif (!$urpm->{options}{auto} && $ask_user && $urpm->{nb_install}) { + my $msg = $urpm->{nb_install} == 1 ? N("To satisfy dependencies, the following package is going to be installed:") : N("To satisfy dependencies, the following packages are going to be installed:"); if ($test) { $msg = "$msg\n" . N("(test only, installation will not be actually done)"); |