summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-28 20:37:13 +0000
committerMatt Wilson <msw@redhat.com>1999-09-28 20:37:13 +0000
commit2c73af4093882a8059dabe1a820f425aed3e7c37 (patch)
tree0b2f2fa206260a50cab4363fdb9d51cb4df4d63d
parentb31d5a05dcef06612d2f6632ac5180cca3e6a2bb (diff)
downloadanaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.tar.gz
anaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.tar.xz
anaconda-2c73af4093882a8059dabe1a820f425aed3e7c37.zip
don't die if the X file isn't there
-rw-r--r--todo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index b74de9e06..a558ff28b 100644
--- a/todo.py
+++ b/todo.py
@@ -1583,7 +1583,10 @@ class ToDo:
self.copyConfModules ()
if not self.x.skip and self.x.server:
if len (self.x.server) >= 3 and self.x.server[0:3] == 'Sun':
- os.unlink(self.instPath + "/etc/X11/X")
+ try:
+ os.unlink(self.instPath + "/etc/X11/X")
+ except:
+ pass
script = open(self.instPath + "/etc/X11/X","w")
script.write("#!/bin/bash\n")
script.write("exec /usr/X11R6/bin/Xs%s -fp unix/:-1 $@\n" % self.x.server[1:])