1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +01:00

add signkey --extend command

This commit is contained in:
Adrian Schröter 2010-07-13 13:53:47 +02:00
parent faad8ca0c1
commit f2be29f0a0
2 changed files with 10 additions and 1 deletions

4
NEWS
View File

@ -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.

View File

@ -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] <PROJECT>
osc signkey [--create|--delete|--extend] <PROJECT>
osc signkey [--notraverse] <PROJECT>
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)