summaryrefslogtreecommitdiff
path: root/src/app_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_index.c')
-rw-r--r--src/app_index.c2
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;