| |
@@ -7959,6 +7959,10 @@
|
| |
parser.add_option("--no-skip-stat", action='store_false', default=None, dest='skip_stat',
|
| |
help="Don't skip rpm stat during createrepo "
|
| |
"(override default builder setting)")
|
| |
+ parser.add_option("--with-draft", action='store_true', default=None, dest='with_draft',
|
| |
+ help="Include any draft builds in the tag")
|
| |
+ parser.add_option("--without-draft", action='store_false', default=None, dest='with_draft',
|
| |
+ help="Exclude any draft builds in the tag")
|
| |
task_opts, args = parser.parse_args(args)
|
| |
if len(args) < 1:
|
| |
parser.error('You must provide a tag to generate the repo from')
|
| |
@@ -8049,6 +8053,7 @@
|
| |
'zck': task_opts.zck,
|
| |
'zck_dict_dir': task_opts.zck_dict_dir,
|
| |
'write_signed_rpms': task_opts.write_signed_rpms,
|
| |
+ 'with_draft': task_opts.with_draft,
|
| |
}
|
| |
if task_opts.latest_n:
|
| |
opts['latest'] = task_opts.latest_n
|
| |
Two new options to koji dist-repo.
--with-draftwill consider a draft build as the latest build.--without-draftwill ignore draft builds and just typically takethe latest non-draft build.
The default remains and if dist-repo encounters a draft build with
out one of the above options dist-repo will continue to exit.
Motivation here is to allow dist-repo to be used against tags containing
draft builds which is currently not possible.
Examples:
A tag containing two builds:
* myrpm-1.1-37.el9.x86_64.rpm NOT DRAFT
* myrpm-1.1-38.el9.x86_64.rpm DRAFT
koji dist-repo mytag9al-testing FAILED: BuildError: Draft build: myrpm-1.1-38.el9,draft_4 is not allowedkoji dist-repo mytag9al-testing --with-draft Deploys the DRAFT one.koji dist-repo mytag9al-testing --without-draft Deploys the NOT DRAFT one.