diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-08 16:23:37 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-08 16:23:37 +0000 |
commit | 6de860b270a522f6c2b621207ed17667e3fb0939 (patch) | |
tree | 3f0382b6d0dfec78b2a5fc7e1dd1afa6b8e79cd9 /perl-install/timezone.pm | |
parent | 710beeb7b08fdbef497f42cebbbc2e3c7529733c (diff) | |
download | drakx-backup-do-not-use-6de860b270a522f6c2b621207ed17667e3fb0939.tar drakx-backup-do-not-use-6de860b270a522f6c2b621207ed17667e3fb0939.tar.gz drakx-backup-do-not-use-6de860b270a522f6c2b621207ed17667e3fb0939.tar.bz2 drakx-backup-do-not-use-6de860b270a522f6c2b621207ed17667e3fb0939.tar.xz drakx-backup-do-not-use-6de860b270a522f6c2b621207ed17667e3fb0939.zip |
timezone::read now returns a hash
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index fdcdf1aa9..3eb4fafe8 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -19,10 +19,8 @@ sub getTimeZones { sub read { my ($prefix) = @_; - my $f = "$prefix/etc/sysconfig/clock"; - my %t = getVarsFromSh($f) or return; - - (timezone => $t{ZONE}, UTC => text2bool($t{UTC})); + my %t = getVarsFromSh("$prefix/etc/sysconfig/clock") or return {}; + { timezone => $t{ZONE}, UTC => text2bool($t{UTC}) }; } sub ntp_server { |