summaryrefslogtreecommitdiff
path: root/src/extract_v2.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-30 18:06:34 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-30 18:06:34 +0300
commit727ecc440c91e6dd4e658538cef0b14964dec195 (patch)
treef873eb22047b3724840409b4d230a97f8a40cf00 /src/extract_v2.c
parentd3e71bb406239a5205163f9d8b31c4a5cac6f097 (diff)
downloadapk-tools-727ecc440c91e6dd4e658538cef0b14964dec195.tar.gz
apk-tools-727ecc440c91e6dd4e658538cef0b14964dec195.tar.bz2
apk-tools-727ecc440c91e6dd4e658538cef0b14964dec195.tar.xz
apk-tools-727ecc440c91e6dd4e658538cef0b14964dec195.zip
verify: support v3 packages
Diffstat (limited to 'src/extract_v2.c')
-rw-r--r--src/extract_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extract_v2.c b/src/extract_v2.c
index 029a5e3..588e1e8 100644
--- a/src/extract_v2.c
+++ b/src/extract_v2.c
@@ -356,7 +356,7 @@ int apk_extract_v2(struct apk_extract_ctx *ectx, struct apk_istream *is)
apk_istream_gunzip_mpart(is, apk_sign_ctx_mpart_cb, &sctx),
apk_extract_v2_entry, ectx, apk_ctx_get_id_cache(ac));
if (r == -ECANCELED) r = 0;
- if (r == 0 && !ectx->is_package && !ectx->is_index)
+ if ((r == 0 || r == -APKE_SIGNATURE_UNTRUSTED || r == -APKE_EOF) && !ectx->is_package && !ectx->is_index)
r = ectx->ops->v2index ? -APKE_V2NDX_FORMAT : -APKE_V2PKG_FORMAT;
if (ectx->generate_identity) *ectx->identity = sctx.identity;
apk_sign_ctx_free(&sctx);