forked from pool/bash-completion
Accepting request 923187 from shells
- Add patch boo1190929-9af4afd0.patch for boo#1190929 add support for compeletion modinfo completion recognize .ko.zst as well as .ko.bz2 OBS-URL: https://build.opensuse.org/request/show/923187 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash-completion?expand=0&rev=52
This commit is contained in:
commit
89efa39fdb
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 4 13:42:40 UTC 2021 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- 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 <dimstar@opensuse.org>
|
Mon Sep 28 15:32:10 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Patch11: bash-completion-2.7-unRAR-remove.patch
|
||||||
# PATCH-FIX-SUSE boo#1167952
|
# PATCH-FIX-SUSE boo#1167952
|
||||||
Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch
|
Patch12: bash-completion-fix-missing-directory-completion-with-filename-pattern.patch
|
||||||
|
# PATCH-FIX-SUSE boo#1190929
|
||||||
|
Patch13: boo1190929-9af4afd0.patch
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
89
boo1190929-9af4afd0.patch
Normal file
89
boo1190929-9af4afd0.patch
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
From 9af4afd01facc0dc3407c8b81375bedd4b2f5fa4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michal Suchanek <msuchanek@suse.de>
|
||||||
|
Date: Thu, 30 Sep 2021 12:25:49 +0200
|
||||||
|
Subject: [PATCH] insmod, modinfo, modprobe: support zstd compressed modules
|
||||||
|
|
||||||
|
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
||||||
|
---
|
||||||
|
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 <werenr@suse.de>
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user