If obs package is in some states, like unresolvable, it will throw exception
when try to fetch build log for this package. And we need to send out build log
only for build failed package.
Fixes: #1429
Change-Id: I3f3754bc7200b15d720d8f23de86015110cd426f
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
for arch in build_results[repo]:
msg = msg + '\n\n %-15s%-15s%-15s' % (repo, arch, \
build_results[repo][arch])
- if build_results[repo][arch] != 'succeeded' and \
+ if build_results[repo][arch] == 'failed' and \
git_info.has_key('OWNER_EMAIL') and git_info['OWNER_EMAIL']:
log = temp_build.get_build_log(repo, arch)
# write log to a file as attachment