summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-01-18 18:33:38 +0000
committerChris Lumens <clumens@redhat.com>2007-01-18 18:33:38 +0000
commitdcdccb7dde84aa2c14763b81081fefc5b46f6d3f (patch)
tree1e691d3d421dcca9c0e0a1f8f664c44073f600a0 /xsetup.py
parent7b19dce59cb66278f5c7b245eb210303a23ccaf3 (diff)
downloadanaconda-dcdccb7dde84aa2c14763b81081fefc5b46f6d3f.tar.gz
anaconda-dcdccb7dde84aa2c14763b81081fefc5b46f6d3f.tar.xz
anaconda-dcdccb7dde84aa2c14763b81081fefc5b46f6d3f.zip
Don't traceback if there's no ksconfig.
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/xsetup.py b/xsetup.py
index 16d590507..c61121725 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -52,5 +52,11 @@ class XSetup:
if rhpl.getArch() == "s390" and args != []:
f.write("xconfig %s\n" % string.join(args, " "))
- f.write(ksconfig.xconfig.__str__())
- f.write(ksconfig.monitor.__str__())
+ if ksconfig:
+ str = ksconfig.xconfig.__str__().rstrip() + string.join(args, " ")
+ f.write(str + "\n")
+
+ str = ksconfig.monitor.__str__().rstrip() + string.join(args, " ")
+ f.write(str + "\n")
+ elif args != []:
+ f.write("xconfig %s\n" % string.join(args, " "))