Skip to content

Commit 61a01e9

Browse files
committed
refactor(modinfo): deprecate in favor of upstream one in >= 35
There isn't an equivalent merged upstream, yet, so use "expected to" wording. Issue: #1246 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent 7679bbf commit 61a01e9

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

completions/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ bashcomp_DATA = 2to3 \
268268
mktemp \
269269
mmsitepass \
270270
_mock \
271-
modinfo \
271+
_modinfo \
272272
modprobe \
273273
_modules \
274274
monodevelop \

completions/modinfo renamed to completions/_modinfo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Linux modinfo(8) completion -*- shell-script -*-
22

3+
# Use of this file is deprecated.
4+
# Upstream completion is expected to be available in kmod >= 35, use that instead.
5+
36
_comp_cmd_modinfo()
47
{
58
local cur prev words cword was_split comp_args

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ EXTRA_DIST = \
2121
look \
2222
mdbook \
2323
mock \
24+
modinfo \
2425
modules \
2526
mount \
2627
mount.linux \

test/fallback/completions/modinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../completions/_modinfo

0 commit comments

Comments
 (0)