diff options
author | Mike Fulbright <msf@redhat.com> | 2003-05-06 16:37:59 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-05-06 16:37:59 +0000 |
commit | e0703718996fe72e8f886fb677382df6eb940eaa (patch) | |
tree | c2d3ec2475061e10b84d66965c8158351b478330 /exception.py | |
parent | aa3f8f596b5b93b7f01a5f8a1e19b8e2eb9e4bfb (diff) | |
download | anaconda-e0703718996fe72e8f886fb677382df6eb940eaa.tar.gz anaconda-e0703718996fe72e8f886fb677382df6eb940eaa.tar.xz anaconda-e0703718996fe72e8f886fb677382df6eb940eaa.zip |
need to specify dest filename in path to copyFile
Diffstat (limited to 'exception.py')
-rw-r--r-- | exception.py | 10 |
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") |