Merge pull request #3190 from nilxam/fix_is_repo_dirty
Fix makeurl() usage in is_repo_dirty()
This commit is contained in:
commit
0d5e755150
@ -1289,7 +1289,11 @@ class StagingAPI(object):
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
def is_repo_dirty(self, project, repository):
|
def is_repo_dirty(self, project, repository):
|
||||||
url = self.makeurl(['build', project, f'_result?code=broken&repository={repository}'])
|
query = {
|
||||||
|
'code': 'broken',
|
||||||
|
'repository': repository
|
||||||
|
}
|
||||||
|
url = self.makeurl(['build', project, '_result'], query=query)
|
||||||
root = ET.parse(http_GET(url)).getroot()
|
root = ET.parse(http_GET(url)).getroot()
|
||||||
for repo in root.findall('result'):
|
for repo in root.findall('result'):
|
||||||
repostate = repo.get('state', 'missing')
|
repostate = repo.get('state', 'missing')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user