From 485b1ae0a95143f693202802ace8cdad6b772cd7 Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Thu, 15 May 2014 09:25:47 +0200 Subject: [PATCH] Change openSUSE_Factory to standard repo. --- osc-check_repo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc-check_repo.py b/osc-check_repo.py index 53430a31..fe285fcd 100644 --- a/osc-check_repo.py +++ b/osc-check_repo.py @@ -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