diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 04:55:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-26 04:55:07 +0000 |
commit | 3e35ce6db0dba4535ed427bdad2c974dc07142a8 (patch) | |
tree | 13d3a49e2f7fbc9b85cdd79f29fb11910ff65582 | |
parent | 899b24df7ade6ae15956f1adebc27f853226fe4d (diff) | |
download | rpmdrake-3e35ce6db0dba4535ed427bdad2c974dc07142a8.tar rpmdrake-3e35ce6db0dba4535ed427bdad2c974dc07142a8.tar.gz rpmdrake-3e35ce6db0dba4535ed427bdad2c974dc07142a8.tar.bz2 rpmdrake-3e35ce6db0dba4535ed427bdad2c974dc07142a8.tar.xz rpmdrake-3e35ce6db0dba4535ed427bdad2c974dc07142a8.zip |
(perform_installation) display size of data to downloaded (#32154)
-rw-r--r-- | Rpmdrake/pkg.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index f3dcd196..b7efaf5e 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -598,7 +598,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $r = format_list(map { scalar(urpm::select::translate_why_removed_one($urpm, $urpm->{state}, $_)) } @to_remove); - my $size = $urpm->selected_size($state); + my ($size, $filesize) = $urpm->selected_size_filesize($state); my $install_count = int(@pkgs); my $to_install = $install_count == 0 ? '' : (P("The following package is going to be installed:", "The following %d packages are going to be installed:", $install_count, $install_count) @@ -613,6 +613,8 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( : N("The following packages have to be removed for others to be upgraded:")), $r), if_($to_install, $to_install)) : $to_install), format_size($size), + $filesize ? N("%s of packages will be retrieved.", formatXiB($filesize)) + : (), N("Is it ok to continue?")), scroll => 1, yesno => 1) or return 1; |