summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-22 11:26:53 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-22 11:26:53 +0000
commit5ccb00978c203295c4bf726a9530c8d696a9f286 (patch)
tree91ffea3e43557824bdc775e8b122af2320004961 /perl-install/install_any.pm
parent8507f5529c1fa95cf068076001adc1dbdc91e4fc (diff)
downloaddrakx-backup-do-not-use-5ccb00978c203295c4bf726a9530c8d696a9f286.tar
drakx-backup-do-not-use-5ccb00978c203295c4bf726a9530c8d696a9f286.tar.gz
drakx-backup-do-not-use-5ccb00978c203295c4bf726a9530c8d696a9f286.tar.bz2
drakx-backup-do-not-use-5ccb00978c203295c4bf726a9530c8d696a9f286.tar.xz
drakx-backup-do-not-use-5ccb00978c203295c4bf726a9530c8d696a9f286.zip
no_comment
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 86afd29b9..d992302a8 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -691,4 +691,10 @@ sub getHds {
$ok;
}
+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));
+}
+
1;