diff options
author | bfox <bfox> | 2001-07-03 22:04:46 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-07-03 22:04:46 +0000 |
commit | fd8ac7633e1366bc522c25f05580180dd6f0ba00 (patch) | |
tree | fa0b00ae28d6d73dd698d6e1c4c4826285dc3c34 | |
parent | 008ffc1cfe88dd3961bc0615c495fd36dc69c8ad (diff) | |
download | anaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.tar.gz anaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.tar.xz anaconda-fd8ac7633e1366bc522c25f05580180dd6f0ba00.zip |
strip comments out of package section of kickstart file
-rw-r--r-- | kickstart.py | 8 |
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) |