#3428 Fix arches check in kiwi plugin
Merged 2 years ago by tkopecek. Opened 2 years ago by jcupova.
jcupova/koji issue-3427  into  master

Fix arches check in kiwi plugin
Jana Cupova • 2 years ago  
file modified
+7 -2
@@ -24,8 +24,13 @@ 

      if repos:

          kojihub.convert_value(repos, cast=list, check_only=True)

      kojihub.get_build_target(target, strict=True)

-     arches = koji.parse_arches(arches, strict=True, allow_none=False)

-     optional_arches = koji.parse_arches(optional_arches, strict=True, allow_none=True)

+     if isinstance(arches, list):

+         arches = " ".join(arches)

+     arches = koji.parse_arches(arches, to_list=True, strict=True, allow_none=False)

+     if isinstance(optional_arches, list):

+         optional_arches = " ".join(optional_arches)

+     optional_arches = koji.parse_arches(

+         optional_arches, to_list=True, strict=True, allow_none=True)

      taskOpts = {

          'channel': 'image',

      }

I think it looks better to have koji.parse_arches accept list arches, so that hub's kiwiBuild api is able to handle comma-, space-separated string and list as arches and optional_arches

rebased onto 7b3462a3bf546b1ea20e14c3287f4356338046d6

2 years ago

rebased onto 2eb2137ec5a898c4bd36bd0f539a8c566d1bea2a

2 years ago

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

2 years ago

rebased onto b18804c490d1f9b93d316715f00e9eea60d666d9

2 years ago

rebased onto 8c9d2e7

2 years ago

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

2 years ago

Commit 7fed630 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago