1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

49931: Update _bsd_pkg

This commit is contained in:
Matthew Martin 2022-03-31 17:37:04 -05:00
parent 283fc8596b
commit 7fc42de7da
2 changed files with 28 additions and 21 deletions

View File

@ -1,5 +1,7 @@
2022-03-31 Matthew Martin <phy1729@gmail.com>
* 49931: Completion/BSD/Command/_bsd_pkg: Update _bsd_pkg.
* 49907: Etc/completion-style-guide: Mention _numbers in
completion guide.

View File

@ -78,12 +78,12 @@ _bsd_pkg() {
;;
openbsd*)
flags+=(
'-A[arch to assume for any package tests]:architecture:_obsd_architectures'
'-A+[arch to assume for any package tests]:architecture:_obsd_architectures'
'-a[do not record packages as installed manually]'
'-aa[force already installed packages to be tagged as installed automatically]'
'-B[specify destdir prefix]:destdir directory:_files -/'
'-B+[specify destdir prefix]:destdir directory:_files -/'
'-c[while replacing packages, delete extra configuration file in the old package]'
'-D[specify failsafe to waive]:failsafe:((
'*-D+[specify failsafe to waive]:failsafe:((
allversions\:"do not trim older p* variants of packages for updates"
arch\:"architecture recorded in package may not match"
checksum\:"verify checksums before deleting or tying old files"
@ -91,9 +91,7 @@ _bsd_pkg() {
donttie\:"do not try to find new files in old packages by comparing the stored sha256"
downgrade\:"do not filter out package versions older than what is currently installed"
installed\:"in update mode, reinstall an existing package with the same update signature"
libdepends\:"library specifications may not be fulfilled"
nonroot\:"install even if not running as root"
paranoid\:"do not run any @exec/@unexec"
repair\:"attempt to repair installed packages with missing registration data"
scripts\:"external scripts may fail"
SIGNER\:"list of trusted signers, separated by commas"
@ -103,10 +101,10 @@ _bsd_pkg() {
))'
'-I[force non-interactive mode]'
'-i[force interactive mode]'
'-L[specify a localbase]:localbase:_files -/'
'-l[specify pkg_info output file to install]:pkg_info file:_files'
'-L+[specify a localbase]:localbase:_files -/'
'-l+[specify pkg_info output file to install]:pkg_info file:_files'
'-m[always display progress meter]'
'-P[check distribution permissions]:permission type:(cdrom ftp)'
'-P+[check distribution permissions]:permission type:(ftp)'
"-qq[don't check checksums]"
'-r[replace existing packages]'
"-s[don't install; just report disk size changes]"
@ -143,26 +141,28 @@ _bsd_pkg() {
case "$OSTYPE" in
netbsd*)
flags+=(
'(:)-a[delete all installed packages]'
'(:)-A[remove automatically installed packages that are no longer required]'
"-D[don't execute deinstallation scripts]"
'-F[specify each package by an installed file]'
'-f[force deinstallation]'
'-K[override PKG_DBDIR]:pkg_dbdir:_files -/'
'-ff[force deinstallation even if preserved]'
'-K+[override PKG_DBDIR]:pkg_dbdir:_files -/'
'-k[silently skip preserved packages]'
'-N[leave the files installed]'
"-O[only delete the package's entries]"
'-P[specify destdir prefix]:destdir directory:_files -/'
'-p[specify prefix]:prefix directory:_files -/'
'-P+[specify destdir prefix]:destdir directory:_files -/'
'-p+[specify prefix]:prefix directory:_files -/'
'-R[delete upward recursively]'
'-r[delete recursively]'
'-V[show version and exit]'
'(-a)*:package name:_bsd_pkg_pkgs_and_files'
'*:package name:_bsd_pkg_pkgs_and_files'
)
;;
openbsd*)
flags+=(
'-a[delete unused dependencies]'
'-B[specify destdir prefix]:destdir directory:_files -/'
'-D[specify failsafe to waive]:failsafe:((
'-B+[specify destdir prefix]:destdir directory:_files -/'
'*-D+[specify failsafe to waive]:failsafe:((
baddepend\:"force deletion of packages even if they reference nonexistent dependencies"
checksum\:"verify checksums before deleting or tying old files"
dependencies\:"delete the set of packages that depend upon the requested packages"
@ -190,11 +190,11 @@ _bsd_pkg() {
'(:)-a[show all installed packages]'
'-c[show comment fields]'
'-d[show long descriptions]'
'-e[test if package is installed]:package name:_bsd_pkg_pkgs'
'-e+[test if package is installed]:package name:_bsd_pkg_pkgs'
'-f[show packing list instructions]'
'-I[show index lines]'
'-L[show full pathnames of files]'
'-l[specify prefix string]:prefix string:'
'-l+[specify prefix string]:prefix string:'
'-q[be quiet]'
'-R[show list of installed requiring packages]'
'-s[show total size occupied by each package]'
@ -210,13 +210,13 @@ _bsd_pkg() {
'-D[show install-message files]'
'-F[specify each package by an installed file]'
'-i[show install scripts]'
'-K[override PKG_DBDIR]:pkg_dbdir:_files -/'
'-K+[override PKG_DBDIR]:pkg_dbdir:_files -/'
'-k[show deinstall scripts]'
'-m[show mtree files]'
'-N[show which packages each package was built with]'
'-n[show which packages each package needs]'
'-p[show installation prefixes]'
'-Q[show the definition of the specified variable from the build information]:variable:'
'-Q+[show the definition of the specified variable from the build information]:variable:'
'-r[show list of installed requiring packages recursively]'
'-S[show total size occupied by each package and its dependents]'
'-u[show information for all user-installed packages]'
@ -228,14 +228,19 @@ _bsd_pkg() {
flags+=(
'(:)-A[show all installed packages, including internal packages]'
'-C[show certificate information]'
'*-D+[specify failsafe to waive]:failsafe:((
SIGNER\:"list of trusted signers, separated by commas"
snap\:"force %c and %m to expand to snapshots"
unsigned\:"allow the installation of unsigned packages without warnings/errors"
))'
'-E[show the package that contains the specified file]:file:_files'
# XXX only with -L
'-K[prefix filenames with category keywords]'
'-M[show the install-message file]'
'-m[only show manual installations]'
'-P[show the pkgpath]'
'-Q[show packages matching the specified query]:query:'
'-r[check the list of packages for a specified pkgspec]:pkgspec:'
'-Q+[show packages matching the specified query]:query:'
'-r+[check the list of packages for a specified pkgspec]:pkgspec:'
'-S[show the update signature]'
'-t[show packages not required by any other]'
'-U[show the deinstall-message file]'