summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-10 11:58:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-10 11:58:09 +0000
commit230c75dfce6576f56448b761a5ee84e7e7b1956e (patch)
treefa04e757bd405b1d89c7a68e8ed79f81bf024e36 /perl-install/install_any.pm
parent8031ef158730d1389fe00e6926c7d01b29b9acf4 (diff)
downloaddrakx-backup-do-not-use-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar
drakx-backup-do-not-use-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.gz
drakx-backup-do-not-use-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.bz2
drakx-backup-do-not-use-230c75dfce6576f56448b761a5ee84e7e7b1956e.tar.xz
drakx-backup-do-not-use-230c75dfce6576f56448b761a5ee84e7e7b1956e.zip
add step summary. remove steps configureTimezone and configurePrinter
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 1094d82a1..4f9d02047 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -276,6 +276,17 @@ sub getAvailableSpace_raw {
die "missing root partition";
}
+sub preConfigureTimezone {
+ my ($o) = @_;
+ require timezone;
+
+ #- can't be done in install cuz' timeconfig %post creates funny things
+ add2hash($o->{timezone}, { timezone::read() }) if $o->{isUpgrade};
+
+ $o->{timezone}{timezone} ||= timezone::bestTimezone(lang::lang2text($o->{lang}));
+ add2hash_($o->{timezone}, { UTC => $::expert && !grep { isFat($_) || isNT($_) } @{$o->{fstab}} });
+}
+
sub setPackages {
my ($o) = @_;