From 0609ac257a5e46bd149608c27f4161cdf1cde8e1 Mon Sep 17 00:00:00 2001 From: Rascalov Date: Fri, 23 Oct 2026 01:39:14 +0200 Subject: [PATCH] mirror update: clarify -max-versions output --- cmd/mirror_update.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/mirror_update.go b/cmd/mirror_update.go index f776fa59..bede2495 100644 --- a/cmd/mirror_update.go +++ b/cmd/mirror_update.go @@ -104,7 +104,11 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error { if err != nil { return fmt.Errorf("unable to update: %s", err) } - context.Progress().Printf("Keeping %d latest version(s) of each package: %d -> %d.\n", maxVersions, oldLen, newLen) + versionWord := "versions" + if maxVersions == 1 { + versionWord = "version" + } + context.Progress().Printf("Keeping at most %d %s of each package: %d -> %d.\n", maxVersions, versionWord, oldLen, newLen) } var (