From 78bfe36d0de10f5fe3e9592664fff70bd79c9e6a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 9 Jul 2013 16:22:22 -0400 Subject: double-quotes no longer needed around keywords --- ipsutils/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipsutils/config.py') diff --git a/ipsutils/config.py b/ipsutils/config.py index 3f4dc08..96d742d 100644 --- a/ipsutils/config.py +++ b/ipsutils/config.py @@ -57,7 +57,7 @@ class Config(object): for line in file(ipsfile).readlines(): parts = shlex.split(line) if key + ":" in parts: - key_dict[key] = parts[1] + key_dict[key] = line[line.find(':')+1:].lstrip(' ').rstrip('\n') #Drop using the original file in favor of a StringIO buffer #Because we need room to breathe without rewriting the file @@ -77,8 +77,8 @@ class Config(object): for line in ipsfile_output: parts = shlex.split(line) if key + ":" in parts: - key_dict[key] = parts[1] - + key_dict[key] = line[line.find(':')+1:].lstrip(' ').rstrip('\n') + #Parse user defined scripts by section and store them in script_dict found_data = False code_section = ['%build', '%prep', '%install', '%transforms'] -- cgit