summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-04 15:55:08 +0000
committerMatt Wilson <msw@redhat.com>2001-01-04 15:55:08 +0000
commit721118d704f58b3537b8af6279fdd7c43d345a84 (patch)
tree2d8cab58152ece7e4abab7635052529699ac0f76 /kickstart.py
parent8f8a22f2791bb91a2448aa60dff148b63d4752a1 (diff)
downloadanaconda-721118d704f58b3537b8af6279fdd7c43d345a84.tar.gz
anaconda-721118d704f58b3537b8af6279fdd7c43d345a84.tar.xz
anaconda-721118d704f58b3537b8af6279fdd7c43d345a84.zip
don't barf on blank lines in ks.cfg's post
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kickstart.py b/kickstart.py
index e948bdeb4..a764ac525 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -388,7 +388,7 @@ class KickstartBase(BaseInstallClass):
if where != "pre" and where != "post":
if not args or args[0][0] == '#': continue
- if args[0] == "%post" or args[0] == "%pre":
+ if args and (args[0] == "%post" or args[0] == "%pre"):
if where =="pre" or where == "post":
s = Script(script, scriptInterp, scriptChroot)
if where == "pre":
@@ -420,7 +420,7 @@ class KickstartBase(BaseInstallClass):
elif str == "--interpreter":
scriptInterp = arg
- elif args[0] == "%packages":
+ elif args and args[0] == "%packages":
if where =="pre" or where == "post":
s = Script(script, scriptInterp, scriptChroot)
if where == "pre":