| |
@@ -17,13 +17,17 @@
|
| |
@export
|
| |
def kiwiBuild(target, arches, desc_url, desc_path, optional_arches=None, profile=None,
|
| |
scratch=False, priority=None, make_prep=False, repos=None, release=None,
|
| |
- type=None):
|
| |
+ type=None, type_attr=None, result_bundle_name_format=None):
|
| |
context.session.assertPerm('image')
|
| |
for i in [desc_url, desc_path, profile, release]:
|
| |
if i is not None:
|
| |
kojihub.convert_value(i, cast=str, check_only=True)
|
| |
if repos:
|
| |
kojihub.convert_value(repos, cast=list, check_only=True)
|
| |
+ if type_attr:
|
| |
+ kojihub.convert_value(type_attr, cast=list, check_only=True)
|
| |
+ if result_bundle_name_format:
|
| |
+ kojihub.convert_value(result_bundle_name_format, cast=str, check_only=True)
|
| |
kojihub.get_build_target(target, strict=True)
|
| |
if isinstance(arches, list):
|
| |
arches = " ".join(arches)
|
| |
@@ -58,6 +62,10 @@
|
| |
opts['make_prep'] = True
|
| |
if type:
|
| |
opts['type'] = type
|
| |
+ if type_attr:
|
| |
+ opts['type_attr'] = type_attr
|
| |
+ if result_bundle_name_format:
|
| |
+ opts['result_bundle_name_format'] = result_bundle_name_format
|
| |
return kojihub.make_task('kiwiBuild',
|
| |
[target, arches, desc_url, desc_path, opts],
|
| |
**taskOpts)
|
| |
In order to be able to support workflows where the exact structure
of the image filenames matter (e.g. for Linux distribution artifacts),
support optionally overriding the image file name structure.