From 8c7c8f9e1497f80cbe9bbdc1bf0b8552b7dd88cb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sun, 16 Sep 2001 18:35:07 +0000 Subject: use new mkdir_p, rm_rf and cp_af from MDK::Common --- perl-install/timezone.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install/timezone.pm') 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}, -- cgit v1.2.1