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

- add signkey --sslcert option to fetch the optional create ssl certificate instead of gpg key

This commit is contained in:
Adrian Schröter 2013-08-30 09:41:13 +02:00
parent b2b2d54312
commit edda98eaff
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@ -2,6 +2,7 @@
- support for kiwi appliance builds using obsrepositories:/ directive
- support for manual release of sources and binaries
- add --last parameter for build logs to show last finished log file, if currently building
- add signkey --sslcert option to fetch the optional create ssl certificate instead of gpg key
0.140
- support python 2.7 and python 3 in parallel now

View File

@ -7622,6 +7622,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='delete the gpg signing key in this project')
@cmdln.option('--notraverse', action='store_true', default=False,
help='don\' traverse projects upwards to find key')
@cmdln.option('--sslcert', action='store_true', default=False,
help='fetch SSL certificate instead of GPG key')
def do_signkey(self, subcmd, opts, *args):
"""${cmd_name}: Manage Project Signing Key
@ -7672,6 +7674,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
while True:
try:
url = makeurl(apiurl, ['source', prj, '_pubkey'])
if opts.sslcert:
url = makeurl(apiurl, ['source', prj, '_project', '_sslcert'])
f = http_GET(url)
break
except HTTPError as e: