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:
Michael Pöhn 2025-07-31 15:31:38 +00:00
commit 97e9784d5d

View file

@ -374,6 +374,7 @@ def get_cache():
f = f'archive/{v["srcname"]}' f = f'archive/{v["srcname"]}'
if not os.path.exists(f): if not os.path.exists(f):
f = f'repo/{v["srcname"]}' f = f'repo/{v["srcname"]}'
if os.path.exists(f):
v['srcnameSha256'] = common.sha256sum(f) v['srcnameSha256'] = common.sha256sum(f)
return apkcache return apkcache