mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-27 12:42:12 +01:00
Merge branch '_keyinfo' of https://github.com/adrianschroeter/osc
Use the _signkey route for retrieving the signkey. Use the "old" way as a fallback when talking with an old API. We should probably also use this route in the fetch module.
This commit is contained in:
commit
836412c57a
@ -9013,6 +9013,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
url = makeurl(apiurl, ['source', prj, "_pubkey"])
|
url = makeurl(apiurl, ['source', prj, "_pubkey"])
|
||||||
f = http_DELETE(url)
|
f = http_DELETE(url)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
|
# use current api, supporting fallback to higher project and server side scripts
|
||||||
|
query = {}
|
||||||
|
if opts.sslcert:
|
||||||
|
query['withsslcert'] = 1
|
||||||
|
url = makeurl(apiurl, ['source', prj, '_keyinfo'], query)
|
||||||
|
f = http_GET(url)
|
||||||
|
except HTTPError as e:
|
||||||
|
# old way to do it
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
url = makeurl(apiurl, ['source', prj, '_pubkey'])
|
url = makeurl(apiurl, ['source', prj, '_pubkey'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user