исправил ошибку двойного запуска команды

This commit is contained in:
rzaitov 2013-11-01 12:37:01 +04:00
parent 50aad47cf6
commit 5ff2eb8a84
2 changed files with 9 additions and 4 deletions

View File

@ -16,8 +16,8 @@ class StepsRunner:
continue
if stripped.startswith("#"):
continue
self.processLine(stripped)
else:
self.processLine(stripped)
def processLine(self, line):
if self.shCommandBuilder.isShCommand(line):

View File

@ -6,7 +6,8 @@ class BuildConfigProvider:
configs = []
for l in leafs:
config = self.fetchConfigFromLeafWrapper(l)
configs.append(config)
if config.get('build_ready', 'false') == 'true':
configs.append(config)
return configs
@ -32,7 +33,11 @@ class BuildConfigProvider:
unionConf = {}
for a in ancestors:
unionConf.update(a['dict'])
dictionary = a['dict']
for k in dictionary:
value = dictionary[k]
if type(value) is str:
unionConf[k] = value
return unionConf