aboutsummaryrefslogtreecommitdiff
path: root/ipsutils
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2013-07-09 16:22:22 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2013-07-09 16:22:22 -0400
commit78bfe36d0de10f5fe3e9592664fff70bd79c9e6a (patch)
tree3e57eef5fbdfbb0259d24d249b9468d6f2856896 /ipsutils
parent34abef358862d5e7fb151f74e33bc5e79b40698b (diff)
downloadipsutils-78bfe36d0de10f5fe3e9592664fff70bd79c9e6a.tar.gz
double-quotes no longer needed around keywords
Diffstat (limited to 'ipsutils')
-rw-r--r--ipsutils/config.py6
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']