summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-02 14:02:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-02 14:02:12 +0000
commit83c03c58a778b7446c222499453ba8fb307ff755 (patch)
tree16235178f53be3207c6c93d2979fe26772f7e053 /perl-install/install_any.pm
parente4451a52e7156c338e19591951084973f94aace9 (diff)
downloaddrakx-backup-do-not-use-83c03c58a778b7446c222499453ba8fb307ff755.tar
drakx-backup-do-not-use-83c03c58a778b7446c222499453ba8fb307ff755.tar.gz
drakx-backup-do-not-use-83c03c58a778b7446c222499453ba8fb307ff755.tar.bz2
drakx-backup-do-not-use-83c03c58a778b7446c222499453ba8fb307ff755.tar.xz
drakx-backup-do-not-use-83c03c58a778b7446c222499453ba8fb307ff755.zip
(setPackages): in auto_installs, default to all groups chosen, unless
compssUsersChoice exist. Won't change anything unless compssListLevel is used of course
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 9e6f859e2..50af69584 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -309,8 +309,10 @@ sub setPackages {
($o->{compssUsers}, $o->{compssUsersSorted}, $o->{compssUsersIcons}, $o->{compssUsersDescr}) =
pkgs::readCompssUsers($o->{packages}, $o->{meta_class});
+ if ($::auto_install && !$o->{compssUsersChoice}) {
+ $o->{compssUsersChoice}{$_} = 1 foreach map { @{$o->{compssUsers}{$_}} } @{$o->{compssUsersSorted}};
+ }
$o->{compssUsersChoice}{SYSTEM} = 1;
-# $o->{compssUsersChoice}{$_} = 1 foreach map { @{$o->{compssUsers}{$_}} } @{$o->{compssUsersSorted}};
foreach (map { substr($_, 0, 2) } lang::langs($o->{langs})) {
push @{$o->{default_packages}}, pkgs::packageByName($o->{packages}, "locales-$_") || next;
@@ -721,9 +723,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: %s(df), %s(rpm)",
+ formatXiB($df[0] - $df[1], 1024),
+ formatXiB(sum(`rpm --root $o->{prefix}/ -qa --queryformat "%{size}\n"`))) if -x "$o->{prefix}/bin/rpm";
}
1;