diff options
Diffstat (limited to 'ipsutils/config.py')
-rw-r--r-- | ipsutils/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'] |