Skip to content

Commit

Permalink
Merge pull request #3190 from nilxam/fix_is_repo_dirty
Browse files Browse the repository at this point in the history
Fix makeurl() usage in is_repo_dirty()
  • Loading branch information
nilxam authored Nov 11, 2024
2 parents 88108f7 + ca99749 commit 0d5e755
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osclib/stagingapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,11 @@ def get_prj_results(self, prj, arch):
return results

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()
for repo in root.findall('result'):
repostate = repo.get('state', 'missing')
Expand Down

0 comments on commit 0d5e755

Please sign in to comment.