about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 00:23:37 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 00:23:37 +0000
commit1d77e36c393be4fa8d836104b6ff2d6bdcfad134 (patch)
treea9ed360c5678cb85a12dcc10985c597b67754f9b /Completion/Debian
parent57cc145802a781407bf70ee833d83af0cc8a484f (diff)
downloadzsh-1d77e36c393be4fa8d836104b6ff2d6bdcfad134.tar.gz
zsh-1d77e36c393be4fa8d836104b6ff2d6bdcfad134.tar.xz
zsh-1d77e36c393be4fa8d836104b6ff2d6bdcfad134.zip
Merge from HEAD of workers/2378{0,1,2,3}.
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/_dput18
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_dput b/Completion/Debian/Command/_dput
index 664b9b231..01aac15e0 100644
--- a/Completion/Debian/Command/_dput
+++ b/Completion/Debian/Command/_dput
@@ -1,14 +1,32 @@
 #compdef dput
 
+_dput() {
 _arguments \
   '(-c --config)'{-c,--config}'[specify config file]:config file:_files' \
   '(-d --debug)'{-d,--debug}'[debug mode]' \
   '(-D --dinstall)'{-D,--dinstall}'[run dinstall after upload]' \
+  '(-e --delayed)'{-E,--delayed}'number of days in delayed queue:(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)' \
   '(-f --force)'{-f,--force}'[force upload of already uploaded package]' \
+  '(-H --host-list)'{-H,--host-list}'[display host list]' \
   '(-l --lintian)'{-l,--lintian}'[run lintian before upload]' \
   '(-o --check-only)'{-o,--check-only}'[check the package, do not upload]' \
   '(-p --print)'{-p,--print}'[print configuration]' \
   '(-s --simulate)'{-s,--simulate}'[simulate an upload only]' \
   '(-u --unchecked)'{-u,--unchecked}'[do not check GPG signature on the changes file]' \
   '(-v --version)'{-v,--version}'[show version information]' \
+  '1::host:_dput_hosts' \
   '*:changes file:_files -g "*.changes(-.)"'
+}
+
+_dput_hosts() {
+  local expl
+
+  if ( [[ ${+_dput_cfhosts} -eq 0 ]] || _cache_invalid dputhosts ) && ! _retrieve_cache dputhosts; then
+    _dput_cfhosts=(${${(M)${(f)"$(dput -H)"}:#*=>*}/ =>*/})
+    _store_cache dputhosts _dput_cfhosts
+  fi
+
+  _wanted dputhosts expl 'target host' compadd -a _dput_cfhosts
+}
+
+_dput "$@"