mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 12:12:11 +01:00
add signkey --extend command
This commit is contained in:
parent
faad8ca0c1
commit
f2be29f0a0
4
NEWS
4
NEWS
@ -1,6 +1,10 @@
|
|||||||
0.128
|
0.128
|
||||||
- better default commands selection for editor/pager
|
- better default commands selection for editor/pager
|
||||||
- support "osc rq reopen" to set a request in new state again
|
- 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
|
0.127
|
||||||
- add size limit mode, files can be ignored on checkout or update given a certain size limit.
|
- add size limit mode, files can be ignored on checkout or update given a certain size limit.
|
||||||
|
@ -5515,6 +5515,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
@cmdln.option('--create', action='store_true', default=False,
|
@cmdln.option('--create', action='store_true', default=False,
|
||||||
help='create new gpg signing key for this project')
|
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,
|
@cmdln.option('--delete', action='store_true', default=False,
|
||||||
help='delete the gpg signing key in this project')
|
help='delete the gpg signing key in this project')
|
||||||
@cmdln.option('--notraverse', action='store_true', default=False,
|
@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):
|
def do_signkey(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Manage Project Signing Key
|
"""${cmd_name}: Manage Project Signing Key
|
||||||
|
|
||||||
osc signkey [--create|--delete] <PROJECT>
|
osc signkey [--create|--delete|--extend] <PROJECT>
|
||||||
osc signkey [--notraverse] <PROJECT>
|
osc signkey [--notraverse] <PROJECT>
|
||||||
|
|
||||||
This command is for managing gpg keys. It shows the public key
|
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:
|
if opts.create:
|
||||||
url = makeurl(apiurl, ['source', prj], query='cmd=createkey')
|
url = makeurl(apiurl, ['source', prj], query='cmd=createkey')
|
||||||
f = http_POST(url)
|
f = http_POST(url)
|
||||||
|
elif opts.extend:
|
||||||
|
url = makeurl(apiurl, ['source', prj, query='cmd=extendkey'])
|
||||||
|
f = http_POST(url)
|
||||||
elif opts.delete:
|
elif opts.delete:
|
||||||
url = makeurl(apiurl, ['source', prj, "_pubkey"])
|
url = makeurl(apiurl, ['source', prj, "_pubkey"])
|
||||||
f = http_DELETE(url)
|
f = http_DELETE(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user