kiwi: Add support for overriding kiwi image file name format
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.
This commit is contained in:
parent
bd21b60f23
commit
06840501bd
3 changed files with 10 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ def handle_kiwi_build(goptions, session, args):
|
|||
parser.add_option("--type-attr", action="append", default=[],
|
||||
help="Override default attributes for the build type from description. "
|
||||
"May be used multiple times.")
|
||||
parser.add_option("--result-bundle-name-format", help="Override default bundle name format")
|
||||
parser.add_option("--make-prep", action="store_true", default=False,
|
||||
help="Run 'make prep' in checkout before starting the build")
|
||||
parser.add_option("--can-fail", action="store", dest="optional_arches",
|
||||
|
|
@ -73,6 +74,8 @@ def handle_kiwi_build(goptions, session, args):
|
|||
kwargs['type'] = options.type
|
||||
if options.type_attr:
|
||||
kwargs['type_attr'] = options.type_attr
|
||||
if options.result_bundle_name_format:
|
||||
kwargs['result_bundle_name_format'] = options.result_bundle_name_format
|
||||
if options.arches:
|
||||
kwargs['arches'] = [canonArch(arch) for arch in options.arches]
|
||||
if options.repo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue