diff options
-rw-r--r-- | src/app_index.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app_index.c b/src/app_index.c index b4e57bf..c13ba2b 100644 --- a/src/app_index.c +++ b/src/app_index.c @@ -298,9 +298,9 @@ static int index_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *ar apk_warn(out, "Total of %d unsatisfiable package names. Your repository may be broken.", counts.unsatisfied); - apk_msg(out, "Index has %d packages (of which %d are new)", - total, newpkgs); - + if (ictx->output != NULL) + apk_msg(out, "Index has %d packages (of which %d are new)", + total, newpkgs); return 0; } |