mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
Merge branch 'flush-file-before-pass' into 'master'
Flush file before passing it to next function See merge request fdroid/fdroidserver!636
This commit is contained in:
commit
84cae0eebc
1 changed files with 1 additions and 0 deletions
|
|
@ -717,6 +717,7 @@ def download_repo_index(url_str, etag=None, verify_fingerprint=True, timeout=600
|
|||
|
||||
with tempfile.NamedTemporaryFile() as fp:
|
||||
fp.write(download)
|
||||
fp.flush()
|
||||
index, public_key, public_key_fingerprint = get_index_from_jar(fp.name, fingerprint)
|
||||
index["repo"]["pubkey"] = hexlify(public_key).decode()
|
||||
index["repo"]["fingerprint"] = public_key_fingerprint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue