Skip to content

Commit

Permalink
Merge pull request #168 from mbiarnes/distgits
Browse files Browse the repository at this point in the history
ART-8704: fixed URL construction for distgits
  • Loading branch information
openshift-merge-bot[bot] authored Jan 17, 2024
2 parents fa62ef0 + 1db4f95 commit bf6a57a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions artbotlib/brew_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,13 @@ async def get_tag_specs(so, tag_spec, data_type, sem) -> str:
if data_type.startswith('nvr'):
result += f'{component_name}-{component_version}-{component_release}'
elif data_type.startswith('distgit'):
distgit_name = component_name.rstrip('-container')
result += f'http://pkgs.devel.redhat.com/cgit/{distgit_name}/commit/?id={component_distgit_commit}'
suffix = "-container"
distgit_name = ""
if suffix in component_name:
distgit_name = component_name.rstrip('container')
distgit_name = distgit_name.rstrip("-")

result += f'https://pkgs.devel.redhat.com/cgit/containers/{distgit_name}/commit/?id={component_distgit_commit}'
elif data_type.startswith('commit'):
result += f'{component_upstream_commit_url}'
elif data_type.startswith('catalog'):
Expand Down

0 comments on commit bf6a57a

Please sign in to comment.