mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-13 14:37:18 +00:00
mirror update: clarify -max-versions output
This commit is contained in:
1 parent
78cd0c71ca
commit
0609ac257a
1 file changed
+5
-1
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user