mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
update: don't crash if src tarball is not present
This commit is contained in:
parent
058f0b7f6a
commit
d20a6a5dcf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue