summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-03-22 15:00:05 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-03-22 15:00:05 +0100
commitb3eaa950d3dc12f170c5e63bd8bf49708c22d676 (patch)
tree52c71964c64b2cb6e76210f86b608a5e6eb0c494
parent06abe6bf7d1f4614f6e5155cce9244531df97b97 (diff)
downloadzsh-b3eaa950d3dc12f170c5e63bd8bf49708c22d676.tar.gz
zsh-b3eaa950d3dc12f170c5e63bd8bf49708c22d676.zip
Add completion for dscverify
Closes: #953389
-rw-r--r--debian/patches/completion-dscverify.diff40
-rw-r--r--debian/patches/series1
2 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/completion-dscverify.diff b/debian/patches/completion-dscverify.diff
new file mode 100644
index 000000000..6c5c02264
--- /dev/null
+++ b/debian/patches/completion-dscverify.diff
@@ -0,0 +1,40 @@
+Description: Add completion for dscverify(1) from Debian's devscripts.
+Author: Romain Porte <debian@microjoe.org>
+Reviewed-by: Daniel Shahaf <danielsh@apache.org>
+Bug-Debian: https://bugs.debian.org/953389
+Forwarded: https://www.zsh.org/mla/workers/2020/msg00350.html
+Applied-Upstream: master, https://sourceforge.net/p/zsh/code/ci/0d7f888945bd487d6458807684883b22dc3b31b8/#diff-1
+Last-Update: 2020-03-21
+--- a/Completion/Debian/Command/_dscverify
++++ b/Completion/Debian/Command/_dscverify
+@@ -0,0 +1,30 @@
++#compdef dscverify
++
++# $ dscverify --version
++# This is dscverify, from the Debian devscripts package, version 2.20.2
++# ...
++
++_dscverify() {
++ local all_opts=(
++ '--help[show the help message and exit]'
++ '--version[show the version + copyright and exit]'
++ '--no-default-keyrings[do not check against the default keyrings]'
++ '*--keyring[add keyring to the list of keyrings used]:keyring:_files -g "*.{kbx,gpg}(-.)"'
++ '(--nosigcheck --no-sig-check -u)'{--nosigcheck,--no-sig-check,-u}'[do not verify the GPG signature]'
++ '--verbose[do not suppress GPG output]'
++ '*:dsc file:_files -g "*.{changes,dsc,buildinfo}(-.)"'
++ )
++
++ local first_only=(
++ '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read the devscripts config file]'
++ )
++
++ if (( CURRENT == 2 )); then
++ all_opts+=($first_only)
++ fi
++
++ _arguments \
++ "$all_opts[@]"
++}
++
++_dscverify "$@"
diff --git a/debian/patches/series b/debian/patches/series
index 5caf1786c..a721bd1e7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ further-mitigate-test-suite-hangs.patch
update-debian-sections.patch
cross-compile.diff
example-shebang.patch
+completion-dscverify.diff