Description of problem:
s-c-kickstart crashes on non-existing KS file
Version-Release number of selected component (if applicable):
Steps to Reproduce:
.qa.[root@i386-5s-1-m1 tps]# system-config-kickstart ks-blah.cfg
Traceback (most recent call last):
File "/usr/bin/system-config-kickstart", line 82, in ?
File "/usr/share/system-config-kickstart/kickstartGui.py", line 91, in __init__
File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1071, in
fh = open(file)
IOError: [Errno 2] No such file or directory: 'ks-blah.cfg'
nice window msg about non existing file and exit
Note: ks-blah.cfg does not exist
*** Bug 434771 has been marked as a duplicate of this bug. ***
Still present in s-c-k-184.108.40.206-2.el5.
Created attachment 471537 [details]
catch errors opening files
This patch should fix it up. The slightly goofy error message is to make sure no additional translations need to be performed.
With system-config-kickstart-220.127.116.11-2.el5 executed the following command in gnome-terminal:
# system-config-kickstart blah-ks.cfg
An error dialog was shown:
---- Error Parsing Kickstart Config ----
The file "balh-ks.cfg" cannot be accessed
---------------------------- OK --------
Moving to VERIFIED.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.