aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-13 09:56:40 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-13 09:56:40 +0000
commit74cd06b5216f5e2a32fa4166858d8977a10a7987 (patch)
treea78828ec873808d7acde69bf1ead50ffc2ead24c
parent5936cd77df3d343539eca60c8d1c5392f6c0b3f4 (diff)
downloadrpmdrake-74cd06b5216f5e2a32fa4166858d8977a10a7987.tar
rpmdrake-74cd06b5216f5e2a32fa4166858d8977a10a7987.tar.gz
rpmdrake-74cd06b5216f5e2a32fa4166858d8977a10a7987.tar.bz2
rpmdrake-74cd06b5216f5e2a32fa4166858d8977a10a7987.tar.xz
rpmdrake-74cd06b5216f5e2a32fa4166858d8977a10a7987.zip
(perform_installation) do not display packages to install/update if none
-rwxr-xr-xrpmdrake5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 85381d29..971a7b52 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1723,8 +1723,9 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my @to_remove = uniq(@{$urpm->{ask_remove}}, map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{urpm_name}) } keys %$pkgs);
my $r = join "\n", $urpm->translate_why_removed($urpm->{state}, @to_remove);
- my $to_install = N("To satisfy dependencies, the following %d packages are going to be installed:\n", int(@pkgs)) .
- formatlistpkg(map { s!.*/!!; $_ } @pkgs);
+ my $install_count = int(@pkgs);
+ my $to_install = $install_count ? N("To satisfy dependencies, the following %d packages are going to be installed:\n", $install_count) .
+ formatlistpkg(map { s!.*/!!; $_ } @pkgs) : '';
interactive_msg_(N("Some packages need to be removed"),
($r ? N("The following packages have to be removed for others to be upgraded: