summaryrefslogtreecommitdiffstats
path: root/perl-install/timezone.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-09 16:27:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-09 16:27:47 +0000
commit5b81add84d6f69ad60226abd75a5773b2284e5f6 (patch)
tree2e801b00018cc6e8ce187531ddb29e36272ae1ca /perl-install/timezone.pm
parent047a962872257cf096d5fb5063bcc185df97951a (diff)
downloaddrakx-5b81add84d6f69ad60226abd75a5773b2284e5f6.tar
drakx-5b81add84d6f69ad60226abd75a5773b2284e5f6.tar.gz
drakx-5b81add84d6f69ad60226abd75a5773b2284e5f6.tar.bz2
drakx-5b81add84d6f69ad60226abd75a5773b2284e5f6.tar.xz
drakx-5b81add84d6f69ad60226abd75a5773b2284e5f6.zip
configureTimezone doesn't take parameter /etc/sysconfig/clock
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r--perl-install/timezone.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index 559c6dbe8..96fb0510e 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -24,12 +24,12 @@ sub read ($) {
("timezone", $t{ZONE}, "UTC", text2bool($t{UTC}));
}
-sub write($$$) {
- my ($prefix, $t, $f) = @_;
+sub write {
+ my ($prefix, $t) = @_;
eval { commands::cp("-f", "$prefix/usr/share/zoneinfo/$t->{timezone}", "$prefix/etc/localtime") };
$@ and log::l("installing /etc/localtime failed");
- setVarsInSh($f, {
+ setVarsInSh("$prefix/etc/sysconfig/clock", {
ZONE => $t->{timezone},
UTC => bool2text($t->{UTC}),
ARC => "false",