mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 06:22:27 +03:00
Merge branch 'fix-srcname-cache-crash' into 'master'
update: don't crash if src tarball is not present See merge request fdroid/fdroidserver!1691
This commit is contained in:
commit
97e9784d5d
1 changed files with 2 additions and 1 deletions
|
@ -374,7 +374,8 @@ def get_cache():
|
|||
f = f'archive/{v["srcname"]}'
|
||||
if not os.path.exists(f):
|
||||
f = f'repo/{v["srcname"]}'
|
||||
v['srcnameSha256'] = common.sha256sum(f)
|
||||
if os.path.exists(f):
|
||||
v['srcnameSha256'] = common.sha256sum(f)
|
||||
|
||||
return apkcache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue