diff options
-rw-r--r-- | perl-install/install_any.pm | 2 | ||||
-rw-r--r-- | perl-install/timezone.pm | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index dd4441794..215f9f382 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -291,7 +291,7 @@ sub preConfigureTimezone { require timezone; #- can't be done in install cuz' timeconfig %post creates funny things - add2hash($o->{timezone}, timezone::read($o->{prefix})) if $o->{isUpgrade}; + add2hash($o->{timezone}, timezone::read()) if $o->{isUpgrade}; $o->{timezone}{timezone} ||= timezone::bestTimezone(lang::lang2text($o->{lang})); diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index 3eb4fafe8..ad79cdb6b 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -18,8 +18,7 @@ sub getTimeZones { } sub read { - my ($prefix) = @_; - my %t = getVarsFromSh("$prefix/etc/sysconfig/clock") or return {}; + my %t = getVarsFromSh("$::prefix/etc/sysconfig/clock") or return {}; { timezone => $t{ZONE}, UTC => text2bool($t{UTC}) }; } |