mirror update: clarify -max-versions output

This commit is contained in:
Rascalov authored and André Roth committed 2026-11-05 11:22:28 +01:00
1 parent 78cd0c71ca
commit 0609ac257a
1 file changed
+5 -1
+5 -1
View File
@@ -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 (