summaryrefslogtreecommitdiffstats
path: root/perl-install/timezone.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r--perl-install/timezone.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index 2738d2956..de7b93af2 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -5,7 +5,6 @@ use strict;
use vars qw($ntp_servers);
use common;
-use commands;
use log;
@@ -52,7 +51,7 @@ sub write {
ntp_server($prefix, $t->{ntp});
- eval { commands::cp("-f", "$prefix/usr/share/zoneinfo/$t->{timezone}", "$prefix/etc/localtime") };
+ eval { cp_af("$prefix/usr/share/zoneinfo/$t->{timezone}", "$prefix/etc/localtime") };
$@ and log::l("installing /etc/localtime failed");
setVarsInSh("$prefix/etc/sysconfig/clock", {
ZONE => $t->{timezone},