summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbfox <bfox>2001-07-03 22:04:46 +0000
committerbfox <bfox>2001-07-03 22:04:46 +0000
commitfd8ac7633e1366bc522c25f05580180dd6f0ba00 (patch)
treefa0b00ae28d6d73dd698d6e1c4c4826285dc3c34
parent008ffc1cfe88dd3961bc0615c495fd36dc69c8ad (diff)
downloadanaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.tar.gz
anaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.tar.xz
anaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.zip
strip comments out of package section of kickstart file
-rw-r--r--kickstart.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py
index a0025e43f..d7920a0a2 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -520,6 +520,14 @@ class KickstartBase(BaseInstallClass):
where = "packages"
else:
if where == "packages":
+ #Scan for comments in package list...drop off everything after "#" mark
+ try:
+ ind = string.index(n, "#")
+ n = n[:ind]
+ except:
+ #No "#" found in line
+ pass
+
if n[0] == '@':
n = n[1:]
n = string.strip (n)