[pacman-dev] [PATCH 1/2] Update completion for -F changes
Signed-off-by: Allan McRae <allan@archlinux.org> --- scripts/completion/bash_completion.in | 3 +-- scripts/completion/zsh_completion.in | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/completion/bash_completion.in b/scripts/completion/bash_completion.in index 915004e2..129a87aa 100644 --- a/scripts/completion/bash_completion.in +++ b/scripts/completion/bash_completion.in @@ -109,7 +109,7 @@ _pacman() { local cur prev words cword _init_completion || return database=('asdeps asexplicit') - files=('list machinereadable owns search refresh regex' 'l o s x y') + files=('list machinereadablerefresh regex' 'l x y') query=('changelog check deps explicit file foreign groups info list native owns search unrequired upgrades' 'c e g i k l m n o p s t u') remove=('cascade dbonly nodeps assume-installed nosave print recursive unneeded' 'c n p s u') @@ -136,7 +136,6 @@ _pacman() { _pacman_pkg Qq;; F) { _arch_incomp 'l list' && _pacman_pkg Slq ; } || - _arch_incomp 'o owns' || compopt +o default;; Q) { _arch_incomp 'g groups' && _pacman_pkg Qg sort; } || diff --git a/scripts/completion/zsh_completion.in b/scripts/completion/zsh_completion.in index c114ae02..82868344 100644 --- a/scripts/completion/zsh_completion.in +++ b/scripts/completion/zsh_completion.in @@ -101,8 +101,6 @@ _pacman_opts_database=( _pacman_opts_files=( {-l,--list}'[List the files owned by the queried package]:package:_pacman_completions_all_packages' - {-o,--owns}'[Query the package that owns]:files:_files' - {-s,--search}'[Search package file names for matching strings]:files:_files' {-x,--regex}'[Enable searching using regular expressions]:regex:' {-y,--refresh}'[Download fresh files databases from the server]' '--machinereadable[Produce machine-readable output]' -- 2.23.0
Signed-off-by: Allan McRae <allan@archlinux.org> --- scripts/completion/bash_completion.in | 4 ++-- scripts/completion/zsh_completion.in | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/completion/bash_completion.in b/scripts/completion/bash_completion.in index 129a87aa..4e63aef9 100644 --- a/scripts/completion/bash_completion.in +++ b/scripts/completion/bash_completion.in @@ -113,10 +113,10 @@ _pacman() { query=('changelog check deps explicit file foreign groups info list native owns search unrequired upgrades' 'c e g i k l m n o p s t u') remove=('cascade dbonly nodeps assume-installed nosave print recursive unneeded' 'c n p s u') - sync=('asdeps asexplicit clean dbonly downloadonly force groups ignore ignoregroup + sync=('asdeps asexplicit clean dbonly downloadonly groups ignore ignoregroup info list needed nodeps assume-installed print refresh recursive search sysupgrade' 'c g i l p s u w y') - upgrade=('asdeps asexplicit force needed nodeps assume-installed print recursive' 'p') + upgrade=('asdeps asexplicit needed nodeps assume-installed print recursive' 'p') common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile noconfirm noprogressbar noscriptlet quiet root verbose' 'b d h q r v') core=('database files help query remove sync upgrade version' 'D F Q R S U V h') diff --git a/scripts/completion/zsh_completion.in b/scripts/completion/zsh_completion.in index 82868344..92fc2382 100644 --- a/scripts/completion/zsh_completion.in +++ b/scripts/completion/zsh_completion.in @@ -44,7 +44,6 @@ _pacman_opts_pkgfile=( '*--nodeps[Skip dependency checks]' '*--assume-installed[Add virtual package to satisfy dependencies]' '--dbonly[Only remove database entry, do not remove files]' - '--force[Overwrite conflicting files]' '--needed[Do not reinstall up to date packages]' '--asdeps[mark packages as non-explicitly installed]' '--asexplicit[mark packages as explicitly installed]' @@ -133,7 +132,6 @@ _pacman_opts_sync_modifiers=( '*--ignoregroup[Ignore a group upgrade]:package group:_pacman_completions_all_groups' '--asdeps[Install packages as non-explicitly installed]' '--asexplicit[Install packages as explicitly installed]' - '--force[Overwrite conflicting files]' '--print-format[Specify how the targets should be printed]' ) -- 2.23.0
Le 23/10/2019 à 11:41, Allan McRae a écrit :
- files=('list machinereadable owns search refresh regex' 'l o s x y') + files=('list machinereadablerefresh regex' 'l x y')
Missing white space?
participants (2)
-
Allan McRae
-
Bruno Pagani