Change openSUSE_Factory to standard repo.
This commit is contained in:
parent
83512669e7
commit
485b1ae0a9
@ -365,7 +365,7 @@ def builddepinfo(apiurl, project, repository, arch):
|
|||||||
return root
|
return root
|
||||||
|
|
||||||
|
|
||||||
def old_md5(apiurl, project, package):
|
def old_md5(apiurl, project, package, repository='standard'):
|
||||||
"""Recollect old MD5 for a package."""
|
"""Recollect old MD5 for a package."""
|
||||||
# XXX TODO - instead of fixing the limit, use endtime to makes
|
# XXX TODO - instead of fixing the limit, use endtime to makes
|
||||||
# sure that we have the correct time frame.
|
# sure that we have the correct time frame.
|
||||||
@ -375,7 +375,6 @@ def old_md5(apiurl, project, package):
|
|||||||
# 'code': 'succeeded',
|
# 'code': 'succeeded',
|
||||||
'limit': limit,
|
'limit': limit,
|
||||||
}
|
}
|
||||||
repository = 'openSUSE_Factory'
|
|
||||||
md5_set = set()
|
md5_set = set()
|
||||||
for arch in ('i586', 'x86_64'):
|
for arch in ('i586', 'x86_64'):
|
||||||
if md5_set:
|
if md5_set:
|
||||||
@ -384,6 +383,7 @@ def old_md5(apiurl, project, package):
|
|||||||
url = makeurl(apiurl,
|
url = makeurl(apiurl,
|
||||||
['/build/%s/%s/%s/_jobhistory' % (project, repository, arch)],
|
['/build/%s/%s/%s/_jobhistory' % (project, repository, arch)],
|
||||||
query=query)
|
query=query)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
root = ET.parse(http_GET(url)).getroot()
|
root = ET.parse(http_GET(url)).getroot()
|
||||||
md5_set = set(e.get('srcmd5') for e in root.findall('jobhist'))
|
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
|
p.updated = True
|
||||||
|
|
||||||
if lmd5 != p.rev and not p.updated:
|
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)
|
msg = '%s/%s is a link but has a different md5sum than %s?' % (prj, spec, pkg)
|
||||||
else:
|
else:
|
||||||
msg = '%s is no longer the submitted version, please resubmit HEAD' % spec
|
msg = '%s is no longer the submitted version, please resubmit HEAD' % spec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user