Changelog fixup

This commit is contained in:
Christian committed 2013-03-23 23:18:24 -04:00
1 parent 93a629dd95
commit 626ae3a725
1 file changed
+3 -2
+3 -2
View File
@@ -33,7 +33,8 @@ def getBuildInfo(url):
data = ast.literal_eval(data)['builds']
data = sorted(data, key=lambda key: key['number'], reverse=True)
for build in data:
build['actions'] = filter(lambda act: 'text' in act, build['actions'])
build['actions'] = filter(lambda act: act is not None, build['actions'])
build['actions'] = filter(lambda act: 'text' in act, build['actions'])
build['actions'] = filter(lambda act: not ' ' in act['text'], build['actions'])
if len(build['actions']) == 0:
build['version'] = None
@@ -74,4 +75,4 @@ def make_changelog(job_path, target_build, change_file, current_version=None):
file = open(change_file, 'wb')
for line in log:
file.write('%s\n' % line)
file.close()
file.close()