fix bug that caused blank line avalanche (extra ‘\n’)

This commit is contained in:
Philip Eisenlohr 2015-04-21 02:34:42 +00:00
parent 4581e22a0f
commit 4339700491
1 changed files with 2 additions and 1 deletions

3
configure vendored
View File

@ -210,9 +210,10 @@ output = []
try:
with open(configFile,'r') as f:
for line in f:
line = line.strip()
items = re.split('[= ]',line)
if (not line.strip() or items[0].startswith('#')):
if (not line or items[0].startswith('#')):
pass
if items[0] == 'DAMASK_BIN':
line = '%s=%s'%(items[0],options.prefix)