diff --git a/bash-completion.changes b/bash-completion.changes index c46631c..9c67bb1 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 4 13:42:40 UTC 2021 - Dr. Werner Fink + +- Add patch boo1190929-9af4afd0.patch for boo#1190929 + add support for compeletion modinfo completion recognize .ko.zst + as well as .ko.bz2 + ------------------------------------------------------------------- Mon Sep 28 15:32:10 UTC 2020 - Dominique Leuenberger diff --git a/bash-completion.spec b/bash-completion.spec index fa08ac3..003d5e0 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -1,7 +1,7 @@ # -# spec file for package bash-completion +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -68,6 +68,8 @@ Patch10: backticks-bsc963140.patch Patch11: bash-completion-2.7-unRAR-remove.patch # PATCH-FIX-SUSE boo#1167952 Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch +# PATCH-FIX-SUSE boo#1190929 +Patch13: boo1190929-9af4afd0.patch BuildRequires: libtool BuildRequires: pkgconfig BuildArch: noarch diff --git a/boo1190929-9af4afd0.patch b/boo1190929-9af4afd0.patch new file mode 100644 index 0000000..922da77 --- /dev/null +++ b/boo1190929-9af4afd0.patch @@ -0,0 +1,89 @@ +From 9af4afd01facc0dc3407c8b81375bedd4b2f5fa4 Mon Sep 17 00:00:00 2001 +From: Michal Suchanek +Date: Thu, 30 Sep 2021 12:25:49 +0200 +Subject: [PATCH] insmod, modinfo, modprobe: support zstd compressed modules + +Signed-off-by: Michal Suchanek +--- + completions/insmod | 2 +- + completions/modinfo | 2 +- + completions/modprobe | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- a/completions/insmod ++++ b/completions/insmod 2021-10-04 13:34:04.749347460 +0000 +@@ -7,7 +7,7 @@ _insmod() + + # do filename completion for first argument + if ((cword == 1)); then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + else # do module parameter completion + COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \ + -p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur")) +--- a/completions/modinfo ++++ b/completions/modinfo 2021-10-04 13:34:04.749347460 +0000 +@@ -37,7 +37,7 @@ _modinfo() + + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + else + _modules $version + fi +--- a/completions/modprobe ++++ b/completions/modprobe 2021-10-04 13:34:04.749347460 +0000 +@@ -80,7 +80,7 @@ _modprobe() + insert) + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z))' ++ _filedir '@(?(k)o?(.[gx]z|.zst))' + elif [[ -n $module ]]; then + # do module parameter completion + if [[ $cur == *=* ]]; then +================================================================================ +From: Werner Fink +Date: Mon, 04 Oct 2021 15:38:08 +0200 +Subject: Also support .bz2 compressed kernel modules + +--- + completions/insmod | 2 +- + completions/modinfo | 2 +- + completions/modprobe | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- a/completions/insmod ++++ b/completions/insmod 2021-10-04 13:35:49.279524797 +0000 +@@ -7,7 +7,7 @@ _insmod() + + # do filename completion for first argument + if ((cword == 1)); then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + else # do module parameter completion + COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \ + -p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur")) +--- a/completions/modinfo ++++ b/completions/modinfo 2021-10-04 13:35:59.863340257 +0000 +@@ -37,7 +37,7 @@ _modinfo() + + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + else + _modules $version + fi +--- a/completions/modprobe ++++ b/completions/modprobe 2021-10-04 13:36:14.743080796 +0000 +@@ -80,7 +80,7 @@ _modprobe() + insert) + # do filename completion if we're giving a path to a module + if [[ $cur == @(*/|[.~])* ]]; then +- _filedir '@(?(k)o?(.[gx]z|.zst))' ++ _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))' + elif [[ -n $module ]]; then + # do module parameter completion + if [[ $cur == *=* ]]; then