| |
@@ -7790,6 +7790,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')
|
| |
@@ -7879,6 +7883,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.skip_stat is not None:
|
| |
opts['createrepo_skip_stat'] = task_opts.skip_stat
|
| |
Two new options to koji dist-repo.
--with-draft
will consider a draft build as the latest build.--without-draft
will 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