#973 Check empty arches before spawning dist-repo
Merged 5 years ago by mikem. Opened 5 years ago by tkopecek.
tkopecek/koji check-arches  into  master

@@ -7026,6 +7026,8 @@ 

          task_opts.arch.remove('noarch')

      if task_opts.with_src and 'src' not in task_opts.arch:

          task_opts.arch.append('src')

+     if not task_opts.arch:

+         parser.error(_('No arches left.'))

      opts = {

          'arch': task_opts.arch,

          'comps': task_opts.comps,

When some (invalid) arches are filtered out, we can have empty list. Don't spawn such task.

rebased onto 80f7e39

5 years ago

Commit 005d0a5 fixes this pull-request

Pull-Request has been merged by mikem

5 years ago