Merge pull request #1922 from coolo/fix_reports_url

Don't hardcode build.opensuse.org
This commit is contained in:
Stephan Kulow 2019-03-26 13:59:43 +01:00 committed by GitHub
commit 4aa89f727c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,8 @@ class InstallChecker(object):
url = self.api.makeurl(['source', 'home:repo-checker', 'reports', project])
osc.core.http_PUT(url, data=''.join(comment))
return 'https://build.opensuse.org/package/view_file/home:repo-checker/reports/{}'.format(project)
url = self.api.apiurl.replace('api.', 'build.')
return '{}/package/view_file/home:repo-checker/reports/{}'.format(url, project)
def report_state(self, state, report_url, project, repository, buildids):
architectures = self.target_archs(project, repository)