1
0

Accepting request 978684 from shells

- Add patch bsc1199724-modules.patch (bsc#1199724)
  * Enable upstream commit to list ko.zst modules as well

OBS-URL: https://build.opensuse.org/request/show/978684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash-completion?expand=0&rev=54
This commit is contained in:
Dominique Leuenberger 2022-05-24 18:30:56 +00:00 committed by Git OBS Bridge
commit 09d3965bd1
3 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 23 10:37:27 UTC 2022 - Dr. Werner Fink <werner@suse.de>
- Add patch bsc1199724-modules.patch (bsc#1199724)
* Enable upstream commit to list ko.zst modules as well
-------------------------------------------------------------------
Fri Jan 28 19:19:55 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -68,6 +68,8 @@ Patch11: bash-completion-2.7-unRAR-remove.patch
Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch
# PATCH-FIX-SUSE boo#1190929
Patch13: boo1190929-9af4afd0.patch
# PATCH-FIX-SUSE boo#1199724
Patch14: bsc1199724-modules.patch
BuildRequires: libtool
BuildRequires: pkgconfig
BuildArch: noarch

15
bsc1199724-modules.patch Normal file
View File

@ -0,0 +1,15 @@
---
bash_completion | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/bash_completion
+++ b/bash_completion 2022-05-23 10:50:43.197937832 +0000
@@ -1316,7 +1316,7 @@ _modules()
local modpath
modpath=/lib/modules/$1
COMPREPLY=($(compgen -W "$(command ls -RL $modpath 2>/dev/null |
- command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\)\{0,1\}$/\1/p')" -- "$cur"))
+ command sed -ne 's/^\(.*\)\.k\{0,1\}o\(\.[gx]z\|\.bz2\|\.zst\)\{0,1\}$/\1/p')" -- "$cur"))
}
# This function completes on installed modules