Skip to content

Commit

Permalink
Iterate over build_logs
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Jan 14, 2016
1 parent b89e566 commit 763ee55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hotness/consumers.py
Expand Up @@ -261,13 +261,13 @@ def _handle_anitya_update(self, upstream, package, msg):
if int(result_rh) == 0:
self.log.info('Rebase package %s to %s was SUCCESSFULL' % (package, version))
for number, reference in six.iteritems(rh_stuff['build_logs'],):
note = 'Scratch build completed %s' % reference
note = 'Scratch build completed. %s' % '\n'.join(reference)
self.bugzilla.follow_up(note, bz)
else:
self.log.info('Rebase package %s to %s FAILED. See for details' % (package, version))
self.bugzilla.follow_up('Rebase package %s to %s FAILED' % (package, version), bz)
for number, reference in six.iteritems(rh_stuff['build_logs']):
note = 'Scratch build failed %s' % reference
note = 'Scratch build failed. %s' % '\n'.join(reference)
self.bugzilla.follow_up(note, bz)

for patch in rh_stuff['patches']:
Expand Down

0 comments on commit 763ee55

Please sign in to comment.