diff --git a/completion.d/_aptly b/completion.d/_aptly index f527f129..edd136aa 100644 --- a/completion.d/_aptly +++ b/completion.d/_aptly @@ -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) diff --git a/completion.d/aptly b/completion.d/aptly index f1726f93..c3030d5f 100644 --- a/completion.d/aptly +++ b/completion.d/aptly @@ -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 diff --git a/man/aptly.1 b/man/aptly.1 index 7b61fe13..5acd81a9 100644 --- a/man/aptly.1 +++ b/man/aptly.1 @@ -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