summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-30 18:06:41 +0000
committerChris Lumens <clumens@redhat.com>2006-03-30 18:06:41 +0000
commitb12c89deed26132b45302d048c92f1a71395efc4 (patch)
treebcd02b80200e8c4abf716f2eb6d05cd0dad66ccc /packages.py
parente6015c01be9bc42e85545c94f757f1efe4fb6a1a (diff)
downloadanaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.gz
anaconda-b12c89deed26132b45302d048c92f1a71395efc4.tar.xz
anaconda-b12c89deed26132b45302d048c92f1a71395efc4.zip
Fix some deprecation warnings.
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages.py b/packages.py
index 48c8056d5..c6323b8fa 100644
--- a/packages.py
+++ b/packages.py
@@ -26,6 +26,7 @@ import string
import language
import fsset
import kudzu
+import shutil
from flags import flags
from product import *
from constants import *
@@ -86,7 +87,7 @@ def copyAnacondaLogs(instPath):
("/tmp/ramfs/X.log", "anaconda.xlog")):
if os.access(fn, os.R_OK):
try:
- iutil.copyFile(fn, "%s/var/log/%s" %(instPath, dest))
+ shutil.copyfile(fn, "%s/var/log/%s" %(instPath, dest))
os.chmod("%s/var/log/%s" %(instPath, dest), 0600)
except:
pass
@@ -175,7 +176,7 @@ def setupTimezone(timezone, upgrade, instPath, dir):
log.error("unable to set timezone")
else:
try:
- iutil.copyFile(tzfile, "/etc/localtime")
+ shutil.copyfile(tzfile, "/etc/localtime")
except OSError, (errno, msg):
log.error("Error copying timezone (from %s): %s" %(tzfile, msg))