diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-05 15:59:00 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-09 16:09:19 +0300 |
commit | 9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7 (patch) | |
tree | b609ed342c6ec32aaf83456b44a86d2adbf98dd4 /src/app_index.c | |
parent | b2af872fff8af2dcde8500f84843c8fa4d554579 (diff) | |
download | apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.gz apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.bz2 apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.tar.xz apk-tools-9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7.zip |
make apk_force non-global, remove left-over apk_arch
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 25ca3b4..b8c3461 100644 --- a/src/app_index.c +++ b/src/app_index.c @@ -117,7 +117,7 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra apk_blob_t *rewrite_arch = NULL; if (isatty(STDOUT_FILENO) && ictx->output == NULL && - !(apk_force & APK_FORCE_BINARY_STDOUT)) { + !(db->force & APK_FORCE_BINARY_STDOUT)) { apk_error("Will not write binary index to console. " "Use --force-binary-stdout to override."); return -1; |