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_add.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_add.c')
-rw-r--r-- | src/app_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_add.c b/src/app_add.c index 4f2a9a6..93b376c 100644 --- a/src/app_add.c +++ b/src/app_add.c @@ -156,7 +156,7 @@ static int add_main(void *ctx, struct apk_database *db, struct apk_string_array return -1; apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY_AND_GENERATE, - NULL, db->keys_fd); + NULL, db->keys_fd, db->flags & APK_ALLOW_UNTRUSTED); r = apk_pkg_read(db, *parg, &sctx, &pkg); apk_sign_ctx_free(&sctx); if (r != 0) { |