Change openSUSE_Factory to standard repo.

This commit is contained in:
Alberto Planas 2014-05-15 09:25:47 +02:00
parent 83512669e7
commit 485b1ae0a9

View File

@ -365,7 +365,7 @@ def builddepinfo(apiurl, project, repository, arch):
return root
def old_md5(apiurl, project, package):
def old_md5(apiurl, project, package, repository='standard'):
"""Recollect old MD5 for a package."""
# XXX TODO - instead of fixing the limit, use endtime to makes
# sure that we have the correct time frame.
@ -375,7 +375,6 @@ def old_md5(apiurl, project, package):
# 'code': 'succeeded',
'limit': limit,
}
repository = 'openSUSE_Factory'
md5_set = set()
for arch in ('i586', 'x86_64'):
if md5_set:
@ -384,6 +383,7 @@ def old_md5(apiurl, project, package):
url = makeurl(apiurl,
['/build/%s/%s/%s/_jobhistory' % (project, repository, arch)],
query=query)
try:
root = ET.parse(http_GET(url)).getroot()
md5_set = set(e.get('srcmd5') for e in root.findall('jobhist'))
@ -535,7 +535,7 @@ def _check_repo_one_request(self, rq, opts):
p.updated = True
if lmd5 != p.rev and not p.updated:
if lmd5 not in old_md5(opts.apiurl, lprj, spec):
if lmd5 not in old_md5(opts.apiurl, lprj, spec, 'standard'):
msg = '%s/%s is a link but has a different md5sum than %s?' % (prj, spec, pkg)
else:
msg = '%s is no longer the submitted version, please resubmit HEAD' % spec