From 74cd06b5216f5e2a32fa4166858d8977a10a7987 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 13 Sep 2006 09:56:40 +0000 Subject: (perform_installation) do not display packages to install/update if none --- rpmdrake | 5 +++-- 1 file 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: -- cgit v1.2.1