#2967 Prune user repos for image tasks
Merged 9 months ago by tkopecek. Opened 9 months ago by tkopecek.
tkopecek/koji issue2966  into  master

file modified
+2 -2
@@ -3053,7 +3053,7 @@ 

                  if isinstance(user_repos, six.string_types):

                      user_repos = user_repos.split(',')

                  index = 0

-                 for user_repo in user_repos:

+                 for user_repo in set(user_repos):

                      self.ks.handler.repo.repoList.append(repo_class(

                          baseurl=user_repo, name='koji-override-%i' % index))

                      index += 1
@@ -3775,7 +3775,7 @@ 

              # the user used --repo at least once

              user_repos = self.opts.get('repo')

              index = 0

-             for user_repo in user_repos:

+             for user_repo in set(user_repos):

                  repo_url = user_repo.replace('$arch', self.arch)

                  ks.handler.repo.repoList.append(repo_class(

                      baseurl=repo_url, name='koji-override-%i' % index,

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

9 months ago

rebased onto fdf9fb7

9 months ago

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

9 months ago

Commit 1427b3e fixes this pull-request

Pull-Request has been merged by tkopecek

9 months ago
Metadata