summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi210
1 files changed, 6 insertions, 4 deletions
diff --git a/gurpmi2 b/gurpmi2
index 4bb0d4da..6ca2cf31 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -211,10 +211,12 @@ sub do_install_2 () {
}
$urpm->{nb_install} = @to_install;
@to_install > 1 && !$gurpmi::options{auto}
- ? ask_continue(P("To satisfy dependencies, the following package is going to be installed:",
- "To satisfy dependencies, the following packages are going to be installed:",
- scalar(@to_install),
- ) . join("\n", '', @to_install, '') . N("(%d packages, %d MB)", scalar(@to_install), toMb($sum)),
+ ? ask_continue(
+ ( (scalar(@to_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:") )
+ . join("\n", '', @to_install, '')
+ . P("(%d package, %d MB)", "(%d packages, %d MB)", scalar(@to_install), toMb($sum)),
, \&do_install_3)
: goto \&do_install_3;
}