summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-10-27 15:21:09 +0000
committerFrancois Pons <fpons@mandriva.com>2000-10-27 15:21:09 +0000
commit895879817a507b0610c66f203246a9d0a771380b (patch)
treeaf4a2b6417f233b3b3aa2d9afe08233749d97571 /perl-install/install_any.pm
parent604e0ab8689536f5ad78eba1035069a9645516e4 (diff)
downloaddrakx-895879817a507b0610c66f203246a9d0a771380b.tar
drakx-895879817a507b0610c66f203246a9d0a771380b.tar.gz
drakx-895879817a507b0610c66f203246a9d0a771380b.tar.bz2
drakx-895879817a507b0610c66f203246a9d0a771380b.tar.xz
drakx-895879817a507b0610c66f203246a9d0a771380b.zip
remove the noising rpm output command line when loging installed rpm
size (only usefull for live_update and just for conveniance).
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 2d458c1a5..5bb59e960 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -721,7 +721,9 @@ sub getHds {
sub log_sizes {
my ($o) = @_;
my @df = common::df($o->{prefix});
- log::l(sprintf "Installed: %dMB(df), %dMB(rpm)", ($df[0] - $df[1]) / 1024, sum(`rpm --root $o->{prefix} -qa --queryformat "%{size}\n"`) / sqr(1024)) if -x "$o->{prefix}/bin/rpm";
+ log::l(sprintf "Installed: %dMB(df), %dMB(rpm)",
+ ($df[0] - $df[1]) / 1024,
+ sum(`rpm --root $o->{prefix}/ -qa --queryformat "%{size}\n"`) / sqr(1024)) if -x "$o->{prefix}/bin/rpm";
}
1;