aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 14:02:31 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 14:02:31 +0000
commitace7bea78b504511acf83bf9b8ce5b1249611797 (patch)
tree0b6264254db905983a85344efa8c1ac29f443301 /Rpmdrake/pkg.pm
parentb4c69ad18d625e098466af8d0d0e2a5c82270605 (diff)
downloadrpmdrake-ace7bea78b504511acf83bf9b8ce5b1249611797.tar
rpmdrake-ace7bea78b504511acf83bf9b8ce5b1249611797.tar.gz
rpmdrake-ace7bea78b504511acf83bf9b8ce5b1249611797.tar.bz2
rpmdrake-ace7bea78b504511acf83bf9b8ce5b1249611797.tar.xz
rpmdrake-ace7bea78b504511acf83bf9b8ce5b1249611797.zip
(format_size) split it out of perform_installation() (needed for next commit)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index b94a438d..7eb3ec23 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -592,10 +592,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
N("The following package has to be removed for others to be upgraded:")
: N("The following packages have to be removed for others to be upgraded:")), $r), if_($to_install, $to_install))
: $to_install),
- ($size >= 0 ?
- N("%s of additional disk space will be used.", formatXiB($size)) :
- N("%s of disk space will be freed.", formatXiB(-$size))
- ),
+ format_size($size),
N("Is it ok to continue?")),
scroll => 1,
yesno => 1) or return 1;