diff options
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; } |