File: 22-deprecate-libsecret-completion.patch

package info (click to toggle)
bash-completion 1%3A2.16.0-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,440 kB
  • sloc: python: 11,252; makefile: 2,471; sh: 934; perl: 85; awk: 55; xml: 29; ansic: 7; java: 5; ruby: 2
file content (54 lines) | stat: -rw-r--r-- 1,652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: Ville Skyttä <ville.skytta@iki.fi>
Subject: refactor(secret-tool): deprecate ours in favor of upstream
Bug: https://github.com/scop/bash-completion/issues/1317
Bug-Debian: https://bugs.debian.org/1093258

diff --git a/completions/Makefile.am b/completions/Makefile.am
index 899bec52..21b6f9e4 100644
--- a/completions/Makefile.am
+++ b/completions/Makefile.am
@@ -398,7 +398,7 @@ cross_platform = 2to3 \
 		sbopkg \
 		screen \
 		scrub \
-		secret-tool \
+		_secret-tool \
 		set \
 		sh \
 		sha256sum \
diff --git a/completions/secret-tool b/completions/_secret-tool
similarity index 93%
rename from completions/secret-tool
rename to completions/_secret-tool
index e8aafd81..862bfa8c 100644
--- a/completions/secret-tool
+++ b/completions/_secret-tool
@@ -1,5 +1,8 @@
 # bash completion for secret-tool(1)                       -*- shell-script -*-
 
+# Use of this file is deprecated. Upstream completion is available in
+# libsecret >= 0.20.5, use that instead.
+
 _comp_cmd_secret_tool()
 {
     local cur prev words cword was_split comp_args
diff --git a/test/fallback/completions/Makefile.am b/test/fallback/completions/Makefile.am
index 28358b4e..24e9c975 100644
--- a/test/fallback/completions/Makefile.am
+++ b/test/fallback/completions/Makefile.am
@@ -46,6 +46,7 @@ EXTRA_DIST = \
 	ruff \
 	runuser \
 	rustup \
+	secret-tool \
 	slackpkg \
 	sops \
 	stern \
diff --git a/test/fallback/completions/secret-tool b/test/fallback/completions/secret-tool
new file mode 120000
index 00000000..ab0a8361
--- /dev/null
+++ b/test/fallback/completions/secret-tool
@@ -0,0 +1 @@
+../../../completions/_secret-tool
\ No newline at end of file