summaryrefslogtreecommitdiff
path: root/Completion/Redhat/Command/_rpm
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
committerJoe Rayhawk <jrayhawk@fairlystable.org>2025-04-30 02:07:56 -0700
commit26e09889646be3ea65b4a3dfeda26213e4bb6a27 (patch)
tree4f3c73a9416bf47ad7e125383d23cf42879e38d7 /Completion/Redhat/Command/_rpm
parent841bce705a58b04220b1f257abcc00ae71cbdbdc (diff)
parent001cba48ce3b964cf01fb3e2af54b20eacbc9bf5 (diff)
downloadzsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.tar.gz
zsh-26e09889646be3ea65b4a3dfeda26213e4bb6a27.zip
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Redhat/Command/_rpm')
-rw-r--r--Completion/Redhat/Command/_rpm13
1 files changed, 8 insertions, 5 deletions
diff --git a/Completion/Redhat/Command/_rpm b/Completion/Redhat/Command/_rpm
index d00f88429..97f65cd6c 100644
--- a/Completion/Redhat/Command/_rpm
+++ b/Completion/Redhat/Command/_rpm
@@ -74,6 +74,7 @@ _rpm () {
selectopts=(
{-a,--all}'[query all packages]'
{-f,--file}'[query packages that own specified files]'
+ '--path[query packages that own specified files, installed or not]'
{-p,--package}'[query uninstalled packages]'
{-g,--group}'[query packages in one of specified groups]'
--pkgid --hdrid --tid --querybynumber
@@ -165,9 +166,7 @@ _rpm () {
{-F+,--freshen}'[freshen mode]:*:upgrade:->upgrade'
{-e+,--erase}'[uninstall mode]:*:uninstall:->uninstall'
'--reinstall[reinstall mode]:*:install:->install'
- '--setperms[set file permissions]:*:package:->setattrs'
- '--setugids[set file owner/group]:*:package:->setattrs'
- '--setcaps[set capabilities of files in the given package]:*:package:->setattrs'
+ '!--set'{perms,ugids,caps}':*:package:->setattrs'
'--restore[restore owner, group, permissions and capabilities of files in the given package]:*:package:->setattrs'
)
;;
@@ -261,13 +260,15 @@ _rpm () {
install)
_arguments -s -C \!{-i,--install,-U,--upgrade,-F,--freshen} $tmp \
$commonopts $pathopts \
+ '(--nodb)--justdb[update the database but not the filesystem]' \
+ '(--justdb)--nodb[update the filesystem but not the database]' \
'--excludepath=:file to exclude:_files -/' \
'--relocate:relocate:->relocate' \
'--prefix=[relocate the package]:package prefix directory:_files -/' \
'(-h --hash)'{-h,--hash}'[print hash marks as package installs]' \
'(--replacepkgs --replacefiles --oldpackage)--force' \
'(--force)--'{replacefiles,replacepkgs} \
- --{aid,allfiles,badreloc,excludedocs,ignorearch,ignoreos,ignoresize,includedocs,justdb,percent,test} \
+ --{aid,allfiles,badreloc,excludedocs,ignorearch,ignoreos,ignoresize,includedocs,percent,test} \
--no{deps,filedigest,contexts,caps,order,suggest,pre,post,preun,postun,trigger{s,in,un,postun}} \
'(--nopre --nopost --nopreun --nopostun)--noscripts' \
'*:pkg file:->package_file'
@@ -275,7 +276,9 @@ _rpm () {
uninstall)
_arguments -s -C \!{-e,--erase} \
"${commonopts[@]}" "${pathopts[@]}" \
- --{allmatches,justdb,repackage,test} \
+ '(--nodb)--justdb[update the database but not the filesystem]' \
+ '(--justdb)--nodb[update the filesystem but not the database]' \
+ --{allmatches,repackage,test} \
--no{deps,scripts,preun,postun,trigger{s,un,postun}} \
'*:package:->package'
;;