File bash-completion-2.7-unRAR-remove.patch of Package bash-completion
Due legal issue the unRAR part of 7z had been removed (boo#1077978, boo#1090515)
---
bash-completion-2.12.0/completions/7z | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- bash-completion-2.12.0/completions/7z
+++ bash-completion-2.12.0/completions/7z 2024-02-23 08:20:37.142193535 +0000
@@ -66,7 +66,7 @@ _comp_cmd_7z()
else
_comp_compgen -c "${cur:2}" -- -P"${cur:0:2}" -W '7z apm arj
bzip2 cab chm cpio cramfs deb dmg elf fat flv gzip hfs iso
- lzh lzma lzma86 macho mbr mslz mub nsis ntfs pe ppmd rar
+ lzh lzma lzma86 macho mbr mslz mub nsis ntfs pe ppmd
rpm squashfs swf swfc tar udf vhd wim xar xz z zip'
fi
return
@@ -98,7 +98,7 @@ _comp_cmd_7z()
# (assumption: extensions are all lowercase)
[[ $mode == w ]] &&
_comp_compgen -a filedir '@(7z|bz2|swf|?(g)tar|?(t)[bglx]z|tb?(z)2|wim)' ||
- _comp_compgen -a filedir '@(7z?(.001)|arj|bz2|cab|cb7|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|[rx]ar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)'
+ _comp_compgen -a filedir '@(7z?(.001)|arj|bz2|cab|cb7|chm|cpio|deb|dmg|flv|gem|img|iso|lz[ah]|lzma?(86)|msi|pmd|xar|rpm|sw[fm]|?(g)tar|taz|?(t)[bglx]z|tb?(z)2|vhd|wim|Z)'
else
if [[ ${words[1]} == d ]]; then
_comp_compgen_split -l -- "$(