Merge "Update stackrc parser for Pike changes"

This commit is contained in:
Jenkins 2017-10-10 10:56:36 +00:00 committed by Gerrit Code Review
commit 78e068fbe8
1 changed files with 10 additions and 1 deletions

View File

@ -206,7 +206,16 @@ class Tools(object):
with open(filepath) as stackrc:
for line in stackrc:
pair = line.split('=')
if 'export' not in line and '#' not in line and '$(' not in line:
if 'export' in line:
continue
elif '#' in line:
continue
elif 'if' in line or 'fi' in line:
continue
elif line == '\n':
continue
if '$(' not in line:
values[pair[0].strip()] = pair[1].strip()
elif '$(' in line and 'for key' not in line:
values[pair[0].strip()] = \