fix(components): an origin APK without a newer preload output still proves the rest

This commit is contained in:
Kurt Himebauch committed 2026-11-09 13:51:13 -05:00
1 parent ddf3985cb5
commit 9003ed14c0
2 files changed
+26 -1

No files matched your search

+2 -1
View File
@@ -133,7 +133,8 @@ def artifact_bytes(origin, cache):
if len(names) != 1:
raise ValueError('Expected one original APK')
with ZipFile(io.BytesIO(archive.read(names[0]))) as apk:
return {name: apk.read('assets/linuxfs/' + name) for name in FILES}
present = set(apk.namelist())
return {name: apk.read('assets/linuxfs/' + name) for name in FILES if 'assets/linuxfs/' + name in present}
def validate_lock(data):