#3469 Fix dist-repo repo.json url
Merged 2 years ago by tkopecek. Opened 2 years ago by jcupova.
jcupova/koji issue-3468  into  master

Fix dist-repo repo.json url
Jana Cupova • 2 years ago  
file modified
+6 -2
@@ -2638,6 +2638,10 @@ 

              values['url'] = pathinfo.distrepo(repo_info['id'], repo_info['tag_name'])

          else:

              values['url'] = pathinfo.repo(repo_info['id'], repo_info['tag_name'])

-         values['repo_json'] = os.path.join(pathinfo.repo(repo_info['id'], repo_info['tag_name']),

-                                            'repo.json')

+         if repo_info['dist']:

+             values['repo_json'] = os.path.join(

+                 pathinfo.distrepo(repo_info['id'], repo_info['tag_name']), 'repo.json')

+         else:

+             values['repo_json'] = os.path.join(

+                 pathinfo.repo(repo_info['id'], repo_info['tag_name']), 'repo.json')

      return _genHTML(environ, 'repoinfo.chtml')

rebased onto f18b694

2 years ago

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @relias-redhat:
- Pull-request tagged with: testing-done

2 years ago

Commit 45a581e fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago