Compare commits

...

2 commits

Author SHA1 Message Date
Michael Pöhn
97e9784d5d Merge branch 'fix-srcname-cache-crash' into 'master'
update: don't crash if src tarball is not present

See merge request fdroid/fdroidserver!1691
2025-07-31 15:31:38 +00:00
Hans-Christoph Steiner
d20a6a5dcf update: don't crash if src tarball is not present 2025-07-29 17:20:11 +02:00

View file

@ -374,7 +374,8 @@ 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"]}'
v['srcnameSha256'] = common.sha256sum(f) if os.path.exists(f):
v['srcnameSha256'] = common.sha256sum(f)
return apkcache return apkcache