summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-16 15:06:28 +0000
committerErik Troan <ewt@redhat.com>2000-05-16 15:06:28 +0000
commitfdf77eb2b998edad8620fb639e426329172ed6a3 (patch)
treec6c5442758380536481275d0efc0a256201ef356 /todo.py
parent5598194d7f9a277a704daf5e0f669b7c2a8936a9 (diff)
downloadanaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.tar.gz
anaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.tar.xz
anaconda-fdf77eb2b998edad8620fb639e426329172ed6a3.zip
give a better error message when we fail to copy the timezone properly
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/todo.py b/todo.py
index afb228582..7decbb543 100644
--- a/todo.py
+++ b/todo.py
@@ -339,12 +339,13 @@ class ToDo:
def writeTimezone(self):
if (self.timezone):
(timezone, asUtc, asArc) = self.timezone
+ fromFile = self.instPath + "/usr/share/zoneinfo/" + timezone
+
try:
- iutil.copyFile(self.instPath + "/usr/share/zoneinfo/" + timezone,
- self.instPath + "/etc/localtime")
+ iutil.copyFile(fromFile, self.instPath + "/etc/localtime")
except OSError, (errno, msg):
self.intf.messageWindow(_("Error"),
- _("Error copying file: %s") % msg)
+ _("Error copying timezone (from %s): %s") % (fromFile, msg))
else:
asUtc = 0
asArc = 0