mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 19:52:12 +01:00
Merge branch 'release-no-delay' of https://github.com/JanZerebecki/osc
Add --no-delay option to the "osc release" command.
This commit is contained in:
commit
e5478e2ff6
@ -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…
x
Reference in New Issue
Block a user