update: don't crash if src tarball is not present

This commit is contained in:
Hans-Christoph Steiner 2025-07-29 17:20:11 +02:00
parent 058f0b7f6a
commit d20a6a5dcf

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