summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-06 16:37:59 +0000
committerMike Fulbright <msf@redhat.com>2003-05-06 16:37:59 +0000
commite0703718996fe72e8f886fb677382df6eb940eaa (patch)
treec2d3ec2475061e10b84d66965c8158351b478330
parentaa3f8f596b5b93b7f01a5f8a1e19b8e2eb9e4bfb (diff)
downloadanaconda-e0703718996fe72e8f886fb677382df6eb940eaa.tar.gz
anaconda-e0703718996fe72e8f886fb677382df6eb940eaa.tar.xz
anaconda-e0703718996fe72e8f886fb677382df6eb940eaa.zip
need to specify dest filename in path to copyFile
-rw-r--r--exception.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/exception.py b/exception.py
index 86a537720..48a6d4bc9 100644
--- a/exception.py
+++ b/exception.py
@@ -215,8 +215,9 @@ def handleException(dispatch, intf, (type, value, tb)):
# see if /mnt/sysimage is present and put exception there as well
if os.access("/mnt/sysimage/root", os.X_OK):
try:
- iutil.copyFile("/tmp/anacdump.txt", "/mnt/sysimage/root/")
+ iutil.copyFile("/tmp/anacdump.txt", "/mnt/sysimage/root/anacdump.txt")
except:
+ log("Failed to copy anacdump.txt to /mnt/sysimage/root")
pass
# run kickstart traceback scripts (if necessary)
@@ -242,6 +243,7 @@ def handleException(dispatch, intf, (type, value, tb)):
try:
iutil.copyFile("/tmp/anacdump.txt", "/tmp/test-anacdump.txt")
except:
+ log("Failed to copy anacdump.txt to /tmp/test-anacdump.txt")
pass
intf.__del__ ()
@@ -286,14 +288,16 @@ def handleException(dispatch, intf, (type, value, tb)):
# copy trace dump we wrote to local storage to floppy
try:
- iutil.copyFile("/tmp/anacdump.txt", "/tmp/crash")
+ iutil.copyFile("/tmp/anacdump.txt", "/tmp/crash/anacdump.txt")
except:
+ log("Failed to copy anacdump.txt to floppy")
pass
# write out any syslog information as well
try:
- iutil.copyFile("/tmp/syslog", "/tmp/crash")
+ iutil.copyFile("/tmp/syslog", "/tmp/crash/syslog")
except:
+ log("Failed to copy syslog to floppy")
pass
isys.umount("/tmp/crash")