summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-25 23:33:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-25 23:33:02 +0000
commit285f69ceacfcd35e6fed52e5b59e163aeaac4fb7 (patch)
tree602c27d55a8e852f3050d1e1ad451f8768934411 /urpmi
parent10e1f8ca3374fdbfc089b107bedf72b7bdb14d19 (diff)
downloadurpmi-285f69ceacfcd35e6fed52e5b59e163aeaac4fb7.tar
urpmi-285f69ceacfcd35e6fed52e5b59e163aeaac4fb7.tar.gz
urpmi-285f69ceacfcd35e6fed52e5b59e163aeaac4fb7.tar.bz2
urpmi-285f69ceacfcd35e6fed52e5b59e163aeaac4fb7.tar.xz
urpmi-285f69ceacfcd35e6fed52e5b59e163aeaac4fb7.zip
- urpmi:
o display "%s of packages will be retrieved." (need perl-URPM 3.10 and synthesis built with @filesize@)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 7a7cb24d..c77d1cc4 100755
--- a/urpmi
+++ b/urpmi
@@ -595,16 +595,17 @@ if (!$urpm->{options}{auto} && $ask_user && $urpm->{nb_install} || $env && !$opt
if ($test) {
$msg = "$msg\n" . N("(test only, installation will not be actually done)");
}
- my $size = $urpm->selected_size($state);
+ my ($size, $filesize) = $urpm->selected_size_filesize($state);
my @to_install_formatted = urpm::msg::format_line_selected_packages($urpm, $state, \@to_install);
my $msg2 = $size >= 0 ?
N("%s of additional disk space will be used.", formatXiB($size)) :
N("%s of disk space will be freed.", formatXiB(-$size));
+ my $msg2_ = $filesize ? N("%s of packages will be retrieved.", formatXiB($filesize)) . "\n" : '';
my $msg3 = P("Proceed with the installation of one package?",
"Proceed with the installation of the %d packages?",
$urpm->{nb_install}, $urpm->{nb_install});
- my $p = join("\n", $msg, @to_install_formatted, $msg2, $msg3);
+ my $p = join("\n", $msg, @to_install_formatted, $msg2, $msg2_ . $msg3);
if ($env && !$options{debug__do_not_install}) {
print "$p\n";
exit 0; #- exit now for specific environment.