mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
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.
This commit is contained in:
parent
00a0c1ce5a
commit
fb80026651
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user