docs: document mirror update -max-versions

This commit is contained in:
Rascalov authored and André Roth committed 2026-11-05 11:22:28 +01:00
1 parent d7e58623a9
commit 78cd0c71ca
3 files changed
+8 -3

No files matched your search

+2 -1
View File
@@ -212,7 +212,8 @@ local keyring="*-keyring=[gpg keyring to use when verifying Release file (could
$keyring \
"-max-tries=[max download tries till process fails with download error]:number: " \
"-skip-existing-packages=[do not check file existence for packages listed in the internal database of the mirror]:$bool" \
"-latest=[download only latest version of each package (per architecture)]:$bool" \
"-latest=[download only latest version of each package (per architecture), same as -max-versions=1]:$bool" \
"-max-versions=[download only the N most recent versions of each package (per architecture), 0 means all versions]:number: " \
"(-)2:mirror name:$mirrors"
;;
rename)
+1 -1
View File
@@ -263,7 +263,7 @@ _aptly()
"update")
if [[ $numargs -eq 0 ]]; then
if [[ "$cur" == -* ]]; then
COMPREPLY=($(compgen -W "-force -download-limit= -downloader= -ignore-checksums -ignore-signatures -keyring= -skip-existing-packages -latest" -- ${cur}))
COMPREPLY=($(compgen -W "-force -download-limit= -downloader= -ignore-checksums -ignore-signatures -keyring= -skip-existing-packages -latest -max-versions=" -- ${cur}))
else
COMPREPLY=($(compgen -W "$(__aptly_mirror_list)" -- ${cur}))
fi
+5 -1
View File
@@ -825,7 +825,11 @@ do not check file existence for packages listed in the internal database of the
.
.TP
\-\fBlatest\fR
download only latest version of each package (per architecture)
download only latest version of each package (per architecture), same as \-max\-versions=1
.
.TP
\-\fBmax\-versions\fR=0
download only the N most recent versions of each package (per architecture), 0 means all versions
.
.SH "RENAMES MIRROR"
\fBaptly\fR \fBmirror\fR \fBrename\fR \fIold\-name\fR \fInew\-name\fR