diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-05 16:47:24 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-09 16:09:19 +0300 |
commit | 7a7eca86709fcf31dbb1acf8b82ff411828fb67b (patch) | |
tree | eb737b2604480caa4140f53b106e2cb361678e4d /src/app_index.c | |
parent | 9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7 (diff) | |
download | apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.gz apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.bz2 apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.xz apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.zip |
make apk_flags non-global, make progress printing state non-global
ref #10682
Diffstat (limited to 'src/app_index.c')
-rw-r--r-- | src/app_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_index.c b/src/app_index.c index b8c3461..2a0a912 100644 --- a/src/app_index.c +++ b/src/app_index.c @@ -183,7 +183,7 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra if (!found) { struct apk_sign_ctx sctx; - apk_sign_ctx_init(&sctx, ictx->method, NULL, db->keys_fd); + apk_sign_ctx_init(&sctx, ictx->method, NULL, db->keys_fd, db->flags & APK_ALLOW_UNTRUSTED); r = apk_pkg_read(db, *parg, &sctx, &pkg); if (r < 0) { apk_error("%s: %s", *parg, apk_error_str(r)); |