mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-02 23:05:17 +01:00
Check fosshub queue status since the API has now been fixed
This commit is contained in:
parent
e4795fcf88
commit
79d7658ea3
1 changed files with 4 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ def request(path, data=None):
|
|||
raise SystemExit('Request to {} failed with response code: {}'.format(path, res.getcode()))
|
||||
# from pprint import pprint
|
||||
# pprint(ans)
|
||||
return ans['data'] if 'data' in ans else ans['status']
|
||||
return ans['status'] if 'status' in ans else ans['data']
|
||||
|
||||
print('Sending upload request to fosshub...')
|
||||
project_id = None
|
||||
|
|
@ -207,7 +207,8 @@ def request(path, data=None):
|
|||
'isOldRelease': False,
|
||||
}
|
||||
# print(json.dumps(jq, indent=2))
|
||||
request('projects/{}/releases/'.format(project_id), data=json.dumps(jq))
|
||||
if not request('projects/{}/releases/'.format(project_id), data=json.dumps(jq)):
|
||||
raise SystemExit('Failed to queue publish job with fosshub')
|
||||
|
||||
|
||||
class UploadInstallers(Command): # {{{
|
||||
|
|
@ -221,7 +222,7 @@ def add_options(self, parser):
|
|||
)
|
||||
|
||||
def run(self, opts):
|
||||
# return upload_to_fosshub()
|
||||
return upload_to_fosshub()
|
||||
all_possible = set(installers())
|
||||
available = set(glob.glob('dist/*'))
|
||||
files = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue