values = dict(values)
if succeeded:
values['result'] = success(values['result'])
+ values['_extra'] = ''
else:
values['result'] = failure(values['result'])
+ values['_extra'] = '\nError: %s' % escape(sys.stdin.read())
for key in ['commit', 'pocket', 'principal']:
values[key] = escape(values[key])
msg = """Submission of %(commit)s to be built in %(pocket)s %(result)s.
-Build submitted by %(principal)s.""" % values
+Build submitted by %(principal)s.%(_extra)s""" % values
return msg
def repo_creation_msg(succeeded, values, verbose=True, success=lambda x: x, failure=lambda x: x,