aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2007-02-23 14:11:04 +0000
committerPablo Saratxaga <pablo@mandriva.com>2007-02-23 14:11:04 +0000
commitd8583d2e2d38dc5e05f6faacba7472875a7debf0 (patch)
tree376e143f1941395f6e6ce5d9ecbfe58f69cba355 /Rpmdrake/pkg.pm
parent927ab98a61247d6970baf3b9c3b28e18bafc30aa (diff)
downloadrpmdrake-d8583d2e2d38dc5e05f6faacba7472875a7debf0.tar
rpmdrake-d8583d2e2d38dc5e05f6faacba7472875a7debf0.tar.gz
rpmdrake-d8583d2e2d38dc5e05f6faacba7472875a7debf0.tar.bz2
rpmdrake-d8583d2e2d38dc5e05f6faacba7472875a7debf0.tar.xz
rpmdrake-d8583d2e2d38dc5e05f6faacba7472875a7debf0.zip
simplified use of ngettext
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-xRpmdrake/pkg.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 84153091..fb72b2a8 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -480,10 +480,8 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
my $install_count = int(@pkgs);
my $to_install = $install_count == 0 ? '' :
- $install_count == 1 ?
- N("To satisfy dependencies, the following package is going to be installed:\n%s\n", formatlistpkg(map { s!.*/!!; $_ } @pkgs))
- : P("To satisfy dependencies, the following %d package is going to be installed:\n%s\n", "To satisfy dependencies, the following %d packages are going to be installed:\n%s\n", $install_count, $install_count,
- formatlistpkg(map { s!.*/!!; $_ } @pkgs));
+ ( P("To satisfy dependencies, the following package is going to be installed:", "To satisfy dependencies, the following %d packages are going to be installed:", $install_count, $install_count)
+ . "\n" . formatlistpkg(map { s!.*/!!; $_ } @pkgs) . "\n");
my $remove_count = scalar(@to_remove);
interactive_msg(($to_install ? N("Confirmation") : N("Some packages need to be removed")),
($r ?