aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2024-04-15 17:19:55 +0300
committerTimo Teräs <timo.teras@iki.fi>2024-04-15 17:19:55 +0300
commitba6c31a5469ef74fb85119508e55de9631ffef41 (patch)
tree96f49bc1f8c94654c25100db780d64b8abe7829e
parent196031358ee4766f050650352496656b86f43d9e (diff)
index: do not print message if outputting file to stdoutHEADmaster
-rw-r--r--src/app_index.c6
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;
}