From fb80026651c47d262dbff33136ae5306ff83aff3 Mon Sep 17 00:00:00 2001 From: Jan Zerebecki Date: Wed, 31 Oct 2018 03:18:08 +0100 Subject: [PATCH] Add --no-delay for osc release This is useful so one can wait with a following osc prjresult until everything done. Without this one can not know if a release job hasn't started yet or is already finished. --- osc/commandline.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 0692aedf..cdef9067 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2989,6 +2989,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='Release only to specified repository') @cmdln.option('--set-release', metavar='RELEASETAG', help='rename binaries during release using this release tag') + @cmdln.option('--no-delay', action='store_true', + help="Don't put the release job in a queue to be run later, but immediately run it. Thus the next call to osc prjresult will reflect it. Otherwise there is no way to know if it is finished or didn't start yet.") def do_release(self, subcmd, opts, *args): """${cmd_name}: Release sources and binaries @@ -3032,6 +3034,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. query["repository"] = opts.repo if opts.set_release: query["setrelease"] = opts.set_release + if opts.no_delay: + query["nodelay"] = "1" baseurl = ['source', source_project] if source_package: baseurl.append(source_package)