url = page.geturl()
page = page.read()
for m in re.finditer('"/ubuntu/\+source/%s/%s(/\+build/\d+)"[^\n]+\n\s*(\w+).*?<span>(\w+)</span>.*?</a>\s*([^\n]+)\n' %
- (package, version), page, re.S):
+ (package, version.replace('+', '\+')), page, re.S):
if m.group(2) == release:
print '%s: %s' % (m.group(3), m.group(4))
buildstats[url + m.group(1)] = [m.group(3).strip(), m.group(4).strip()]
urlopener.open(build+'/+rescore', urlencode(
{'SCORE': '5000', 'RESCORE': '1'}))
elif op == 'retry':
- if status == 'Failed to build':
+ if status in ('Failed to build', 'Chroot problem'):
print 'retrying', build, '(%s)' % arch
urlopener.open(build+'/+retry', urlencode(
{'RETRY': '1'}))