From ba6c31a5469ef74fb85119508e55de9631ffef41 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 15 Apr 2024 17:19:55 +0300 Subject: index: do not print message if outputting file to stdout --- src/app_index.c | 6 +++--- 1 file 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; } -- cgit v1.2.3