diff options
author | Timo Teräs <timo.teras@iki.fi> | 2024-05-18 14:43:33 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2024-05-18 14:43:33 +0300 |
commit | be292bd5052276bc8ef7bbad22ce40f8882efa5f (patch) | |
tree | eb004dcdbb7ce2472796795a6c747744f158472c | |
parent | de114558a5d8fa15350b1b3d440712fab6bae817 (diff) |
db: honor 'verify' mode in apk_cache_download()2.14-stable
fixes 70dc66a6 "pkg: clean up and simplify code"
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 7a69d3f..609983d 100644 --- a/src/database.c +++ b/src/database.c @@ -662,7 +662,7 @@ int apk_cache_download(struct apk_database *db, struct apk_repository *repo, if (apk_flags & APK_SIMULATE) return 0; if (cb) cb(cb_ctx, 0); - apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY, NULL, db->keys_fd); + apk_sign_ctx_init(&sctx, verify, NULL, db->keys_fd); is = apk_istream_from_url_if_modified(url, st.st_mtime); is = apk_istream_tee(is, db->cache_fd, tmpcacheitem, !autoupdate, cb, cb_ctx); is = apk_istream_gunzip_mpart(is, apk_sign_ctx_mpart_cb, &sctx); |