diff --git a/NEWS b/NEWS index f9d2efc8..e337a798 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,10 @@ 0.128 - better default commands selection for editor/pager - support "osc rq reopen" to set a request in new state again +# +# Features which require OBS 2.1 +# + - add osc signkey --extend for extending the expiration date of the gpg public key 0.127 - add size limit mode, files can be ignored on checkout or update given a certain size limit. diff --git a/osc/commandline.py b/osc/commandline.py index fd2bfabb..e39e3fa4 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5515,6 +5515,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. @cmdln.option('--create', action='store_true', default=False, help='create new gpg signing key for this project') + @cmdln.option('--extend', action='store_true', default=False, + help='extend expiration date of the gpg public key for this project') @cmdln.option('--delete', action='store_true', default=False, help='delete the gpg signing key in this project') @cmdln.option('--notraverse', action='store_true', default=False, @@ -5522,7 +5524,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. def do_signkey(self, subcmd, opts, *args): """${cmd_name}: Manage Project Signing Key - osc signkey [--create|--delete] + osc signkey [--create|--delete|--extend] osc signkey [--notraverse] This command is for managing gpg keys. It shows the public key @@ -5559,6 +5561,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. if opts.create: url = makeurl(apiurl, ['source', prj], query='cmd=createkey') f = http_POST(url) + elif opts.extend: + url = makeurl(apiurl, ['source', prj, query='cmd=extendkey']) + f = http_POST(url) elif opts.delete: url = makeurl(apiurl, ['source', prj, "_pubkey"]) f = http_DELETE(url)