From 714de8519c8db353293f09ce901c145f8bfb24f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 5 Mar 2014 16:03:23 +0100 Subject: [PATCH] - support release --set-release option --- NEWS | 3 +++ osc/commandline.py | 4 ++++ osc/core.py | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b8cb9190..c6bc7b9d 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +0.145 + - allow to use the set-release option when running a manual release + 0.144 - allow commiting to package sources from linked projects. osc will ask to branch it first. - group support in bugowner and maintainer command diff --git a/osc/commandline.py b/osc/commandline.py index 5913b9df..2e77f5cc 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2742,6 +2742,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='Release only to specified project') @cmdln.option('--target-repository', metavar='TARGETREPOSITORY', help='Release only to specified repository') + @cmdln.option('--set-release', metavar='RELEASETAG', + help='rename binaries during release using this release tag') def do_release(self, subcmd, opts, *args): """${cmd_name}: Release sources and binaries @@ -2780,6 +2782,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. query["targetproject"] = opts.target_project if opts.target_repository: query["targetrepository"] = opts.target_repository + if opts.set_release: + query["setrelease"] = opts.set_release baseurl = ['source', source_project] if source_package: baseurl.append(source_package) diff --git a/osc/core.py b/osc/core.py index 43c68bf3..a8580f28 100644 --- a/osc/core.py +++ b/osc/core.py @@ -5,7 +5,7 @@ from __future__ import print_function -__version__ = '0.144' +__version__ = '0.144git' # __store_version__ is to be incremented when the format of the working copy # "store" changes in an incompatible way. Please add any needed migration