for result in et.findall('result'):
for summary in result.findall('summary'):
for status in summary.findall('statuscount'):
- if status.get('code') in ("succeeded","unresolvable","failed"):
+ if status.get('code') in ("succeeded","unresolvable","failed","broken"):
summarylist.append({'repo':result.get('repository'), \
'arch':result.get('arch'), \
'code':status.get('code'), \
for arch in build_status[repo].keys():
for pkg in build_status[repo][arch].keys():
if not re.match(".*_aggregate", pkg):
- if build_status[repo][arch][pkg] == 'failed':
+ #print '[%s] repo(%s), arch(%s), pkg(%s), build_status(%s)\n' \
+ # % (__file__, repo, arch, pkg, build_status[repo][arch][pkg])
+ if build_status[repo][arch][pkg] == 'failed' or \
+ build_status[repo][arch][pkg] == 'broken' or \
+ build_status[repo][arch][pkg] == 'unresolvable':
failed_packages_cnt += 1
# return the number of failed packages except *_aggregate packages.